To generate a GitHub Personal Access Token we need to following steps to generate it.
Make sure to copy your new personal access token now. You won’t be able to see it again!
~/.composer/auth.json
file if it doesn´t exists and add the following content.{
"github-oauth": {
"github.com": "<your-key-goes-here>"
}
}
That's it! You should be able to use composer require "nameofyour/package"
without a prompt for your token.
This is me.