Composer is the dependency manager for PHP. Use packagist.org to search for packages.
Here the basic commands for composer:
Start new php project:
composer initInstall a new packages with:
composer require packageNameGet the latest version
composer updateUninstall packages:
composer remove packageNameSearch packages
composer search packageNameShows a list of installed packages that need to be updated:
composer outdatedYou should always run the validate command before you commit your composer.json file, and before you tag a release.
composer validateCLI documentation here.