首页 > 代码库 > composer 一些使用说明
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 一些使用说明