composer update single package with dependencies code example
Example 1: update particular package composer
composer update doctrine/doctrine-fixtures-bundle
Example 2: composer update single package
composer require phpmailer/phpmailer
composer update doctrine/doctrine-fixtures-bundle
composer require phpmailer/phpmailer