Home  >  Article  >  Development Tools  >  Composer updates related commands for the specified package!

Composer updates related commands for the specified package!

藏色散人
藏色散人Original
2020-12-07 13:55:243996browse

The following tutorial column of composer will introduce composer to update the specified package||composer common commands. I hope it will be helpful to friends who need it!

Composer updates related commands for the specified package!

The command is as follows:

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

The above is the detailed content of Composer updates related commands for the specified package!. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Review composerNext article:Review composer