PHP Composer Available Commands


Example

CommandUsage
aboutShort information about Composer
archiveCreate an archive of this composer package
browseOpens the package's repository URL or homepage in your browser.
clear-cacheClears composer's internal package cache.
clearcacheClears composer's internal package cache.
configSet config options
create-projectCreate new project from a package into given directory.
dependsShows which packages cause the given package to be installed
diagnoseDiagnoses the system to identify common errors.
dump-autoloadDumps the autoloader
dumpautoloadDumps the autoloader
execExecute a vendored binary/script
globalAllows running commands in the global composer dir ($COMPOSER_HOME).
helpDisplays help for a command
homeOpens the package's repository URL or homepage in your browser.
infoShow information about packages
initCreates a basic composer.json file in current directory.
installInstalls the project dependencies from the composer.lock file if present, or falls back on the composer.json.
licensesShow information about licenses of dependencies
listLists commands
outdatedShows a list of installed packages that have updates available, including their latest version.
prohibitsShows which packages prevent the given package from being installed
removeRemoves a package from the require or require-dev
requireAdds required packages to your composer.json and installs them
run-scriptRun the scripts defined in composer.json.
searchSearch for packages
self-updateUpdates composer.phar to the latest version.
selfupdateUpdates composer.phar to the latest version.
showShow information about packages
statusShow a list of locally modified packages
suggestsShow package suggestions
updateUpdates your dependencies to the latest version according to composer.json, and updates the composer.lock file.
validateValidates a composer.json and composer.lock
whyShows which packages cause the given package to be installed
why-notShows which packages prevent the given package from being installed