]> src.twobees.de Git - dotfiles.git/blob - stow/oh-my-zsh/.oh-my-zsh/plugins/composer/README.md
ad6ed24bcdafd0c245b07da94afe0c8671935b2a
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / plugins / composer / README.md
1 # composer
2
3 This plugin provides completion for [composer](https://getcomposer.org/), as well as aliases
4 for frequent composer commands. It also adds Composer's global binaries to the PATH, using
5 Composer if available.
6
7 To use it add `composer` to the plugins array in your zshrc file.
8
9 ```zsh
10 plugins=(... composer)
11 ```
12
13 Original author: Daniel Gomes <me@danielcsgomes.com>
14
15 ## Aliases
16
17 | Alias  | Command                            | Description                                                                             |
18 | ------ | ---------------------------------- | --------------------------------------------------------------------------------------- |
19 | `c`    | `composer`                         | Starts composer                                                                         |
20 | `ccp`  | `composer create-project`          | Create new project from an existing package                                             |
21 | `cdo`  | `composer dump-autoload -o`        | Converts PSR-0/4 autoloading to classmap for a faster autoloader (good for production)  |
22 | `cdu`  | `composer dump-autoload`           | Updates the autoloader                                                                  |
23 | `cget` | `curl -s <installer> \| php`       | Installs composer in the current directory                                              |
24 | `cgr`  | `composer global require`          | Allows require command to run on COMPOSER_HOME directory                                |
25 | `cgrm` | `composer global remove`           | Allows remove command to run on COMPOSER_HOME directory                                 |
26 | `cgu`  | `composer global update`           | Allows update command to run on COMPOSER_HOME directory                                 |
27 | `ci`   | `composer install`                 | Resolves and installs dependencies from `composer.json`                                 |
28 | `co`   | `composer outdated`                | Shows a list of installed packages with available updates                               |
29 | `cod`  | `composer outdated --direct`       | Shows a list of installed packages with available updates which are direct dependencies |
30 | `cr`   | `composer require`                 | Adds new packages to `composer.json`                                                    |
31 | `crm`  | `composer remove`                  | Removes packages from `composer.json`                                                   |
32 | `cs`   | `composer show`                    | Lists available packages, with optional filtering                                       |
33 | `csu`  | `composer self-update`             | Updates composer to the latest version                                                  |
34 | `cu`   | `composer update`                  | Updates composer dependencies and `composer.lock` file                                  |
35 | `cuh`  | `composer update -d <config-home>` | Updates globally installed packages                                                     |