composer install specific version of composer code example
Example 1: upgrade composer version
composer self-update
Example 2: update composer mac
#mac
composer self-update
Example 3: composer require specific version
composer require vendor/package:version
Example 4: composer install package with specific version
composer require PACKAGE_NAME "PACKAGE_VERSION"