. Generate a new personal access token https://github.com/settings/tokens/new
. Copy your token ghp_mytoken
$ cd ~/.config/composer/auth.json`
$ composer config github-oauth.github.com ghp_mytoken
$ cat ~/.config/composer/auth.json
{
"github-oauth": {
"github.com": "ghp_mytoken"
}
}
. https://github.com/settings/tokens/new . https://getcomposer.org/doc/articles/authentication-for-private-packages.md#github-oauth