update a single package composer 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}