creates a basic composer.json file in current directory
Back
composer prohibits [package?]
Front
shows which packages prevent the given package from being installed
Back
composer install [project?]
--prefer-source flag
Front
installs the project dependencies from the composer.lock file if present, or falls back on the composer.json
--prefer-source flag: install dependency from source
Back
composer require [package?]
Front
adds required packages to your composer.json and installs them
Back
composer u
composer upgrade
composer update
Front
upgrades your dependencies to the latest version according to composer.json, and updates the composer.lock file
Back
composer i [package]
Front
installs the project dependencies from the composer.lock file if present, or falls back on the composer.json
shows which packages cause the given package to be installed [package]
--tree / -t flag: view this in a dependency tree
Back
composer info
Front
shows information about packages
Back
composer --profile
Front
display timing and memory usage information
Back
composer exec
Front
executes a vendored binary/script
Back
composer search
Front
searches for packages
Back
composer -q, --quiet
Front
do not output any message
Back
composer create-project
Front
creates new project from a package into given directory
Back
php composer.phar -> composer
Front
the composer output
Back
home
Front
opens the package's repository URL or homepage in your browser
Back
composer validate
Front
validates a composer.json and composer.lock
Back
composer update
--prefer-source flag
Front
? (vs install)
--prefer-source: update from source
Back
composer -h, --help
Front
display help message
Back
composer -v|vv|vvv, --verbose
Front
increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Back
composer suggests
Front
shows package suggestions
Back
licenses
Front
shows information about licenses of dependencies
Back
composer status
--verbose or -v flag
Front
shows a list of locally modified packages, for packages installed from source
--verbose or -v flag: a breakdown of the packages and files within them that have been modified locally
Back
composer diagnose
Front
diagnoses the system to identify common errors
Back
composer why-not [package]
- available flag: --tree OR: -t
Front
shows which packages prevent the given package from being installed
--tree / -t flag: view this in a dependency tree
Back
composer config
Front
sets config options
Back
composer browse
Front
opens the package's repository URL or homepage in your browser
Back
composer run-script
Front
runs the scripts defined in composer.json
Back
composer clear-cache
composer clearcache
Front
clears composer's internal package cache
Back
composer show
- composer show --tree (OR: -t)
- composer show 'symfony/*'
- composer show laravel/framework
Front
lists out all installed packages with their version number and description
- --tree flag: view this as a dependency tree
- filter the returned packages using a wildcard
- view information about a specific package
Back
composer outdated
--minor-only or -m flag
Front
shows a list of installed packages that have updates available, including their latest version
--minor-only / -m flag: see the minor update versions highlighted
Back
list
Front
lists commands
Back
composer global [command]
Front
Allows running commands in the global composer dir ($COMPOSER_HOME)