Composer Alias Plugin
Add alias-support feature for your composer., (*1)
, (*2)
中文版, (*3)
Installation
Install via composer., (*4)
$ composer global require slince/composer-alias
Example
Add alias for composer update
;, (*5)
$ composer alias up update
Now, you can execute the following command to update your dependencies., (*6)
bash
$ composer up
, (*7)
USAGE
Add an alias:
$ composer alias req require
Equals:, (*8)
$ composer req symfony/console
Group packages
You can use this command to group packages. like this:, (*9)
$ composer req-sf "require symfony/console symfony/event-dispatcher"
You can install "symfony/console", "symfony/event-dispatcher" with this command:, (*10)
$ composer req-sf
List all alias
$ composer alias -l
will output:, (*11)
-------- --------------------------------------------------
Alias Command
-------- --------------------------------------------------
val validate
up update
req-sf require symfony/event-dispatcher symfony/console
req require
i install
-------- --------------------------------------------------
Remove an existing alias
$ composer alias [alias name] --unset
Help
Execute the following command for help., (*12)
$ composer alias --help
LICENSE
The MIT license. See MIT, (*13)