iwai/aws-sdk-php-phalcon
Composer 安装命令:
composer require iwai/aws-sdk-php-phalcon
包简介
A simple Phalcon service provider for including the AWS SDK for PHP.
README 文档
README
A simple Phalcon service provider for including the AWS SDK for PHP.
Installation
{
"require": {
"iwai/aws-sdk-php-phalcon": "*"
}
}
Usage
<?php require __DIR__ . '/vendor/autoload.php'; use Aws\Phalcon\AwsServiceProvider; use Phalcon\Mvc\Application; $app = new Application(); $eventsManager = new Phalcon\Events\Manager(); $app->setEventsManager($eventsManager); $eventsManager->attach("application:boot", new AwsServiceProvider(array( 'key' => 'your-aws-access-key-id', 'secret' => 'your-aws-secret-access-key', 'region' => 'us-east-1', ))); echo $app->handle()->getContent();
Example
// Get the Amazon S3 client $s3 = $this->getDI()->get('aws')->get('s3'); // Create a list of the buckets in your account $buckets = array(); foreach ($s3->getIterator('ListBuckets') as $bucket) { $buckets[] = $bucket['Name']; } var_dump($buckets);
统计信息
- 总下载量: 4.27k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 22
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2013-08-29