Composer hidden Token
You should generate new tokens on github
Settings \ Developer settings \ Personal access tokens
Note the token can also be added manually to the composer.json
file:
{ "require": { "infoweb-internet-solutions/yii2-action": "*", }, "config": { "github-oauth": { "github.com": "your long token" } }, "repositories": [ { "type": "vcs", "url": "git@bitbucket.org:infoweb-internet-solutions/yii2-action.git" }, ]}
However, if you're committing the file to a VCS repository, you may not want to include the credentials in the file. In that case, you can use the COMPOSER_AUTH
environment variable to pass the same information.
export COMPOSER_AUTH='{"github-oauth":{"github.com": "your long token"}}'composer update
Delete composer.lock
file.
Then delete the vendor folder and run composer again to install all the packages.