composer 一些使用说明
Posted ヽ坚强的蘑菇
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了composer 一些使用说明相关的知识,希望对你有一定的参考价值。
1 使用订制的包 配置
"repositories": [
{
"type": "path",
"url": "./packages/mypackages"
}
],
"lib/mypackages": "1.0.0",
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.2.*",
"prettus/l5-repository": "^2.5",
"predis/predis": "^1.0",
"barryvdh/laravel-debugbar": "^2.2",
"barryvdh/laravel-ide-helper": "^2.2",
"jenssegers/agent": "^2.3"
}
2 laravel composer 配置优化
"post-update-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
"php artisan ide-helper:generate",
"php artisan ide-helper:meta",
"php artisan cache:clear",
"php artisan route:cache",
"php artisan optimize",
"composer dumpautoload"
]
以上是关于composer 一些使用说明的主要内容,如果未能解决你的问题,请参考以下文章