slince/composer-alias

Composer Alias Plugin

Installs: 26

Dependents: 0

Suggesters: 0

Security: 0

Stars: 7

Watchers: 2

Forks: 0

Open Issues: 1

Type:composer-plugin

1.0.0 2018-01-16 08:47 UTC

This package is auto-updated.

Last update: 2020-10-08 09:37:23 UTC


README

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