Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

amzn/amazon-pay-sdk-php not directly installable by composer #42

Open
pdbreen opened this issue Mar 28, 2017 · 3 comments
Open

amzn/amazon-pay-sdk-php not directly installable by composer #42

pdbreen opened this issue Mar 28, 2017 · 3 comments

Comments

@pdbreen
Copy link
Contributor

pdbreen commented Mar 28, 2017

It seems the package rename has left composer confused - perhaps a new packagist entry is needed?

$ composer require amzn/amazon-pay-sdk-php

  [InvalidArgumentException]
  Could not find package amzn/amazon-pay-sdk-php at any version for your mini
  mum-stability (stable). Check the package spelling or your minimum-stability

As a work around, I was able to install after adding a custom repository to let composer know where to look:

    "repositories": [{
        "type": "vcs",
        "url": "https://github.com/amzn/amazon-pay-sdk-php.git"
    }]
@andrelopez
Copy link

Bug confirmed, thanks @pdbreen for the tip

@capellidev
Copy link

capellidev commented Apr 25, 2017

@pdbreen , can you please help me, where to put the code in composer.json file you have written above?
I have written like this,

"repositories": [{
"type": "vcs",
"url": "https://github.com/amzn/amazon-pay-sdk-php.git"
}],
"require": {
"php": ">=5.6.4",
"laravel/framework": "5.4.",
"laravel/tinker": "~1.0",
"razorpay/razorpay": "1.
"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~5.7"
}

but still not getting the amazon package in my project.

@pdbreen
Copy link
Contributor Author

pdbreen commented Apr 25, 2017

@capellidev with the repository added, you should now be able to run composer require amzn/amazon-pay-sdk-php and it will find the package. Or, you can directly add a new entry to the require section and then run composer update.

"require": {
        "php": ">=5.6.4",
        "laravel/framework": "5.4.",
        "laravel/tinker": "~1.0",
        "razorpay/razorpay": "1."
        "amzn/amazon-pay-sdk-php": "^3.0.0",
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants