Back to Ohmyzsh

composer

plugins/composer/README.md

latest2.9 KB
Original Source

composer

This plugin provides completion for composer, as well as aliases for frequent composer commands. It also adds Composer's global binaries to the PATH, using Composer if available.

To use it add composer to the plugins array in your zshrc file.

zsh
plugins=(... composer)

Original author: Daniel Gomes [email protected]

Aliases

AliasCommandDescription
ccomposerStarts composer
ccpcomposer create-projectCreate new project from an existing package
cdocomposer dump-autoload -oConverts PSR-0/4 autoloading to classmap for a faster autoloader (good for production)
cducomposer dump-autoloadUpdates the autoloader
cgetcurl -s <installer> | phpInstalls composer in the current directory
cgrcomposer global requireAllows require command to run on COMPOSER_HOME directory
cgrmcomposer global removeAllows remove command to run on COMPOSER_HOME directory
cgucomposer global updateAllows update command to run on COMPOSER_HOME directory
cicomposer installResolves and installs dependencies from composer.json
cocomposer outdatedShows a list of installed packages with available updates
codcomposer outdated --directShows a list of installed packages with available updates which are direct dependencies
crcomposer requireAdds new packages to composer.json
crmcomposer removeRemoves packages from composer.json
cscomposer showLists available packages, with optional filtering
csucomposer self-updateUpdates composer to the latest version
cucomposer updateUpdates composer dependencies and composer.lock file
cuhcomposer update -d <config-home>Updates globally installed packages