composer create-project composer.json code example
Example 1: update packages composer global
composer global update
Example 2: composer install package with specific version
composer require PACKAGE_NAME "PACKAGE_VERSION"
composer global update
composer require PACKAGE_NAME "PACKAGE_VERSION"