app2641 / aws-client-manager
1.1
2014-09-22 02:54 UTC
Requires
- php: >=5.3
- aws/aws-sdk-php: *
- satooshi/php-coveralls: *
This package is not auto-updated.
Last update: 2024-09-24 03:18:18 UTC
README
描述
AWS SDK for PHP2 中各客户端类可以轻松调用的库。
要求
- PHP 5.*
使用
在环境变量中指定 AWS 连接所需参数。
$ export AWS_ACCESS_KEY_ID=your_aws_access_key
$ export AWS_SECRET_ACCESS_KEY=your_aws_secret_key
# export AWS_DEFAUKT_REGION=your_region
S3Client 类调用示例。
<?php
use Acm\Acm;
$s3 = Acm::getS3();
$response = $s3->getObject(....);
Ec2Client 类调用示例。
<?php
$ec2 = Acm::getEc2();
$images = $ec2->describeImages(....);
安装
可以从 Composer 中安装。
{
"require": {
"app2641/aws-client-manager": "*"
}
}
$ composer.phar install