php-ga icon indicating copy to clipboard operation
php-ga copied to clipboard

Error when pulling using Composer

Open surefirejack opened this issue 12 years ago • 2 comments

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     

surefirejack avatar Jan 20 '14 11:01 surefirejack

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",
    ...
},

djekl avatar Jan 20 '14 14:01 djekl

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.

mablae avatar May 31 '16 14:05 mablae