composer update leave one package code example
Example 1: composer update single package
composer require phpmailer/phpmailer
Example 2: composer update single package
composer require {package/packagename}
composer require phpmailer/phpmailer
composer require {package/packagename}