Use Composer to require a new package and add it to the composer.json file.
composer require vendor/package