composer add package version code example
Example 1: composer add package
composer require name-of-package
Example 2: composer install package with specific version
composer require PACKAGE_NAME "PACKAGE_VERSION"
composer require name-of-package
composer require PACKAGE_NAME "PACKAGE_VERSION"