composer update package to specific version without dependencies code example
Example 1: composer install production
composer install --no-dev --optimize-autoloader
Example 2: composer install without dependencies
composer install --ignore-platform-reqs