名词概述
- satis:
http://docs.phpcomposer.com/articles/handling-private-packages-with-satis.html - 资源包:
http://docs.phpcomposer.com/02-libraries.html
http://docs.phpcomposer.com/04-schema.html - 资源库:
http://docs.phpcomposer.com/05-repositories.html
外部dist包存储到私有资源库
statis配置
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
{ "type": "package", "package" : { "name": "symfony/process", "version": "3.2.0", "dist": { "url": "https://github.com/symfony/process/archive/v3.2.0.zip", "type" : "zip" }, "require": { "php": ">=5.5.9" }, "autoload": { "psr-4": { "Symfony\\Component\\Process\\": "" }, "exclude-from-classmap": [ "/Tests/" ] } } }, |
由于之前未定义require, autoload配置项,导致安装后无法安装相关依赖及配置psr4映射
让composer递归加载包
参考:
http://docs.phpcomposer.com/faqs/why-can%27t-composer-load-repositories-recursively.html
statis配置
1 2 3 |
{ "require-dependencies": true } |