如何在Elastic Beanstalk上安装AWS PHP SDK?

时间:2013-09-24 09:38:58

标签: php amazon-web-services amazon-ec2 composer-php elastic-beanstalk

我在/ home / ec2-user中使用composer.json尝试编曲,但得到错误:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package aws/aws-sdk-php could not be found in any version, there may be a typo in the package name.

我的json文件如下所示:

{
    "require": {
        "aws/aws-sdk-php": "2.*"
    }
}

我想在项目目录中尝试但不知道如何找到它?

1 个答案:

答案 0 :(得分:1)

安装php aws sdk的正确方法是:

"aws/aws-sdk-php": "2.4.*@dev"

有关packagist的更多信息:https://packagist.org/packages/aws/aws-sdk-php