how to composer require code example
Example 1: composer update
php composer.phar update
Example 2: composer install package with specific version
composer require PACKAGE_NAME "PACKAGE_VERSION"
php composer.phar update
composer require PACKAGE_NAME "PACKAGE_VERSION"