uecode/amazon-bundle
最新稳定版本:2.0.1
Composer 安装命令:
composer require uecode/amazon-bundle
包简介
AWS SDK v2 Bundle for Symfony2
README 文档
README
This bundle is a semantic configuration and service provider for the AWS PHP SDK v2
General Installation
- Add to composer.json under
require
"uecode/amazon-bundle": ">=2.0.0, <3.0.0",
- Register in
AppKernel
$bundles = array( // ... new Uecode\Bundle\AmazonBundle\UecodeAmazonBundle() );
- Add Account info to your config.yml
uecode_amazon: accounts: main: key: somekey secret: somesecret
Usage
In your code, after doing the above, you should be able to get an amazon service with:
// get container $service = $container->get('uecode_amazon.instance.main'); // OR $service = $container->get('aws.main');
After getting the service, you will be able to fetch any of the services in the AWS service Locator.
For help there, follow these guides: AWS SDK for PHP. When following there guides, you won't need to use the factory classes,
you should just be able to run service->get('service_name').
For Example
$cloudFront = $container->get('aws.main')->get('CloudFront');
Copyright
Copyright (c) 2014 Underground Elephant
License
Licensed under the Apache License, Version 2.0.
See LICENSE.
统计信息
- 总下载量: 26.07k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-02-09