/composer-alias

:guitar: Composer Alias Plugin

Primary LanguagePHPMIT LicenseMIT

Composer Alias Plugin

Add alias-support feature for your composer.

Build Status Latest Stable Version Scrutinizer

中文版

Installation

Install via composer.

$ composer global require slince/composer-alias

Example

Add alias for composer update;

$ composer alias up update

Now, you can execute the following command to update your dependencies.

$ composer up

USAGE

Add an alias:

$ composer alias req require

Equals:

$ composer req symfony/console

Group packages

You can use this command to group packages. like this:

$ composer req-sf "require symfony/console symfony/event-dispatcher"

You can install "symfony/console", "symfony/event-dispatcher" with this command:

$ composer req-sf

List all alias

$ composer alias -l

will output:

 -------- --------------------------------------------------
  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.

$ composer alias --help

LICENSE

The MIT license. See MIT