to the require section of your composer.json file and execute php composer.phar update code example
Example 1: php composer update
php composer.phar update
Example 2: composer add package
composer require name-of-package
php composer.phar update
composer require name-of-package