packagist

Where to register autoload when the vendor is not managed with composer in Symfony 2.1?

£可爱£侵袭症+ 提交于 2019-12-02 23:10:58
I'm using symfony 2.1 and I want to add a library to vendors. The library do not exists in packagist. I can't manage it with composer. When I install bundles or others vendors through composer, it manage autoload for me. But where to register autoload when the vendor is not managed with composer? You can add libraries to composer that are not in packagist. You must add them in the repositories array of your composer.json file. Here's how to load a github repository that has a composer.json file, even though it's not on packagist (for example a fork you would have done to fix a repository) :

Working on forked GitHub repository through Composer

邮差的信 提交于 2019-12-02 01:48:13
I hope my question is not too vague, but can't get a proper answer by searching. I have the following situation; We are working on a project and have certain dependencies installed through Composer. One of these dependencies is quite outdated and requires some fixes and additions. I have forked this repo on GitHub and added it to Packagist. To work on the code, I need it running in my project and edit from there to see if my changes work, but it is in the vendor folder, where it is installed through composer. Cloning this project through GitHub directly in the vendor folder won't work, as the

composer常用命令

萝らか妹 提交于 2019-12-01 20:27:14
查看 composer config -g -l repo.packagist 配置文件 全局设置成国内的地址 composer config -g repo.packagist composer https://packagist.phpcomposer.com 以上属于 系统全局配置 composer的镜像,如果你只想 单独配置某个项目 ,进入到该目录的文件夹下,执行 composer config repo.packagist composer https://packagist.phpcomposer.com 来源: oschina 链接: https://my.oschina.net/hongjiang/blog/3135790

composer常用命令

二次信任 提交于 2019-12-01 20:24:13
查看 composer config -g -l repo.packagist 配置文件 全局设置成国内的地址 composer config -g repo.packagist composer https://packagist.phpcomposer.com 以上属于 系统全局配置 composer的镜像,如果你只想 单独配置某个项目 ,进入到该目录的文件夹下,执行 composer config repo.packagist composer https://packagist.phpcomposer.com 来源: oschina 链接: https://my.oschina.net/hongjiang/blog/3135790

composer 很慢怎么办?

只愿长相守 提交于 2019-12-01 20:15:19
🔗 关于 Composer 的详细安装使用,详见之前的文章: 在 PHP 中安装、使用 Composer 包管理工具 Composer 在国内不管是更新还是安装等都有一个「 慢 」的问题,有的时候真的很煎熬。 因此我们一般会替换 Packagist / Composer 中国全量镜像 ,然而在使用过程发现,这个镜像并不稳定,有时候也会挂掉,所以本文介绍另外两种加速 composer 的方式。 方式一:使用另一个镜像(推荐) 现在阿里云官方已经推出了 Composer 全量镜像,详见这里 https://mirrors.aliyun.com/composer 推荐一个 composer 镜像切换管理工具 https://github.com/slince/composer-registry-manager 👍 设置镜像: # -g 表示全局,去除该参数则只对当前项目生效 ➜ composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/ 取消镜像: ➜ composer config -g --unset repos.packagist 调试 # 追加参数 -vvv 可输出详细的信息 ➜ composer -vvv require alibabacloud/sdk 方式二:使用代理

How do I change the packagist sticker for stable release?

孤街浪徒 提交于 2019-11-30 06:44:47
This is my open source code I wrote. https://github.com/simkimsia/UtilityBehaviors/blob/master/README.mdown I have a No Stable Release from packagist.org How do I go about having a Stable Release sticker from packagist ? You have to tag your code with a version number. git tag -a 0.0.0 That will declare the first stable version. If you worry about an all-zero version number, you can start with something like 0.0.1 if you want. Try to stick to semantic versioning if you can: http://semver.org . After that you should push the to the public repository, like git push --tags . Note that you can use

How do you get composer to install a non-composer package?

狂风中的少年 提交于 2019-11-29 20:37:52
I am trying to get composer to download the following library from this project, however, it does not have a composer.json file in it so I'm not sure if this is possible. { "require" : { "fguillot/picoFeed" : "*" }, "repositories": [ { "type": "vcs", "url": "https://github.com/fguillot/picoFeed" } ] } Error: [Composer\Repository\InvalidRepositoryException] No valid composer.json was found in any branch or tag of https://github.com/fguillot/picoFeed , could not load a package from it. To include a non composer repository you need to set up a package repository . Which would give you something

The "https://packagist.laravel-china.org/packages.json" file could not be downloaded:

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-29 19:59:37
使用composer安装错误提示: The "https://packagist.laravel-china.org/packages.json" file could not be downloaded: Peer certificate CN= *.phphub.org' did not match expected CN= packagist.laravel-china.org' Failed to enable crypto failed to open stream: operation failed https://packagist.laravel-china.org could not be fully loaded, package information was loaded from the local cache and may be out of date 按说明是镜像地址请求出错,于是去https://packagist.laravel-china.org查看,发现Laravel China在一个月前发了篇文章《Laravel China 镜像完成历史使命,将于两个月后停用》,所以很明白了,你需要换镜像。 阿里云 Composer 全量镜像 Packagist 官方实时同步,推荐使用最新的 Composer 版本。 镜像类型:全量镜像 更新时间:1 分钟

composer基本操作

感情迁移 提交于 2019-11-29 08:03:57
原文转自微信公众号:qq1005349393 Composer介绍 Composer 是 PHP 的一个<font color='red'>包依赖</font>管理工具。我们可以在项目中声明所依赖的外部工具库,Composer 会帮你安装这些依赖的库文件,有了它,我们就可以很轻松的使用一个命令将其他人的优秀代码引用到我们的项目中来。Composer 默认情况下不是全局安装,而是基于指定的项目的某个目录中(例如 vendor)进行安装。Composer 需要 PHP 5.3.2+ 以上版本,且需要开启 openssl。Composer 可运行在 Windows 、 Linux 以及 OSX 平台上。 Composer安装 1.Windows安装 Wondows 平台上,我们只需要下载 Composer-Setup.exe 后,一步步安装即可。需要注意的是你需要开启 openssl 配置,我们打开 php 目录下的 php.ini,将 extension=php_openssl.dll 前面的分号去掉就可以了。 安装完成之后,检测是否安装成功。可以使用 composer --version 命令查看,如下图: 2.Linux安装 // 下载composer文件 php -r "copy('https://install.phpcomposer.com/installer',