How to install the PHP package smartfactory/oauth2 from Packagist with Composer

By Where is my PHP package

PHP
Composer
Packagist
smartfactory/oauth2

Run the following command to install the package and its dependencies. The require command adds new packages to the composer.json file from the current directory.

composer require smartfactory/oauth2