thomasbachem / php-ga

Server-Side Google Analytics PHP Client
Other
317 stars 100 forks source link

Error when pulling using Composer #9

Open surefirejack opened 10 years ago

surefirejack commented 10 years ago

Environment: Pagodabox

Composer.json: "united-prototype/php-ga": "dev-composer",

On push to server, composer errors out like so:

  -   Failed to clone https://github.com/Fran6co/php-ga.git via git, https protocols, aborting.                       
  -                                                                                                                   
  -   - git://github.com/Fran6co/php-ga.git                                                                           
  -     fatal: remote error:                                                                                          
  -       Repository not found.                                                                                       
  -                                                                                                                   
  -   - https://github.com/Fran6co/php-ga.git                                                                         
  -     error: The requested URL returned error: 403 while accessing https://github.com/Fran6co/php-ga.git/info/refs  
  -                                                                                                                   
  -     fatal: HTTP request failed     
djekl commented 10 years ago

Because packagist is pointing to the wrong package, this is how I would load it. I am not sure if @thomasbachem added it to packagist himself...

"repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/thomasbachem/php-ga.git"
    }
],
"require": {
    "united-prototype/php-ga": "dev-composer",
    ...
},
mablae commented 8 years ago

This repo does not even have a composer.json. So it will not work like @djekl suggested.

If this lib is the newest version and only maintained, it would be probably best to contact the owner of https://packagist.org/packages/theiconic/php-ga-measurement-protocol which is @crowdpark and ask him to mark his package as abadoned and point to the new package here.