Dependency Manager for PHP.

# To show currently packages installed:
composer show -i

# To to show PHP platform extensions and binaries (not third party developer packages):
composer show -p

# To search for package:
composer search <package>

# To show only packages that use the specified search term (-N)
composer search <package> -N

# To show suggested packages (`-v`/--verbose to include a description):
composer suggests -v

# To install a package:
composer require <vendor/package>

# To install a package globally:
# NOTE: be sure to add composer bin directory to your $PATH:
# if [ -d "$HOME/.composer/vendor/bin" ]; then
#    export PATH="$PATH:$HOME/.composer/vendor/bin"
# fi
composer global require <vendor/package>

# To install a dev package:
composer require <vendor/package> --dev

# To show a package's dependencies:
composer depends --link-type=require <vendor/package>

# To update all packages:
composer update

# To update a specific package:
composer update <vendor/package>

# To remove a specific package:
composer remove <vendor/package>

# To remove a package, along with all its dependencies:
composer remove <vendor/package> --update-with-dependencies

# To create a composer.json file:
composer init

# To list available commands:
composer list