FuelPHP installation with composer update requesting a Github OAuth token

1.6k views Asked by At

I downloaded fuelphp 1.7.3 from its website. When I run composer update, I'm requested to enter a token. What token I will have to provide?

$ composer update
Loading composer repositories with package information

Could not fetch https://api.github.com/repos/fuel/docs, please create a GitHub O Auth token to go over the API rate limit
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+ on+Sithu+2015-06-25+1050
to retrieve a token. It will be stored in "C:/Users/Singtech/AppData/Roaming/Com poser/auth.json" for future use by Composer.
Token (hidden):

4

There are 4 answers

2
Nasser Mansouri On

If you have a github account, use it,

0
kenjis On
  1. Use the official Zip file.

  2. Wait until GitHub API limits reset (60 hits/one hour).

0
mark.sagikazar On

As others said this has nothing to do with FuelPHP itself, but there is a valid point though that users without Github account should still be able to use FuelPHP.

As others also pointed, this error is caused by the Github API rate limit, which is 50/hour AFAIK.

What you can do (if you have a Github account) is generating an API key and configuring composer to use it as written here

If you don't have a Github account, it is very unlikely you can use composer with public repositories. In this case I suggest using the provided ZIP file from our homepage.

If you need an updated version of any dependencies, download the dependency ZIP from Github and configure a custom repository for that package as written here

0
Jonas Sciangula Street On
{
  "config": {
    "github-oauth": {
      "github.com": "YOUR_TOKEN"
    }
  }
}