composer更新指定包的相关命令!

下面由composer教程栏目带大家介绍composer更新指定包||composer 常用命令,希望对需要的朋友有所帮助!

composer更新指定包的相关命令!

命令如下:

composer list 显示所有命令
composer show 显示所有包信息
composer install 在 composer.json 配置中添加依赖库之后运行此命令安装
composer create-project laravel/laravel Laravel –prefer-dist “5.1.*” 创建项目
composer search packagename 搜索包
composer update 更新所有包
composer update monolog/monolog 更新指定包
composer remove monolog/monolog 移除指定的包
composer require monolog/monolog 添加指定包
composer require monolog/monolog:1.19 添加指定包和版本
composer require monolog/monolog=1.19
composer require monolog/monolog 1.19

以上就是composer更新指定包的相关命令!的详细内容,更多请关注www.sxiaw.com其它相关文章!