定制 seferov/aws-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

seferov/aws-bundle

最新稳定版本:3.0.0

Composer 安装命令:

composer require seferov/aws-bundle

包简介

Symfony wrapper of AWS SDK

README 文档

README

DEPRECATED By the time I started aws bundle there was no official library for Symfony. However there is a maintained official Symfony SDK, thus I deprecate this bundle in favor of it.

AWS Bundle

Build Status Test Coverage Code Climate SensioLabsInsight

Amazon Web Services Symfony Bundle built on the top of official AWS SDK.

Installation:

1. Download

Download the bundle:

composer require seferov/aws-bundle

2. Register

Enable the bundle in app/AppKernel.php:

// ...
public function registerBundles()
{
    $bundles = array(
        // ...
        new Seferov\AwsBundle\SeferovAwsBundle(),
    );
}

3. Configure

Add the following configuration to your app/config/config.yml

Example:

seferov_aws:
    credentials:
        key: AWS_KEY
        secret: AWS_SECRET
    region: AWS_REGION
    services:
        s3:
            credentials:
                key: AWS_S3_KEY
                secret: AWS_S3_SECRET
            region: AWS_S3_REGION
            version: '2006-03-01'
            endpoint: 'http://192.168.99.100:9324'	// Optional for local debug with service mocks
    # ...

Service names are underscored, such as elastic_beanstalk.

For further configuration see Configuration page.

Usage

Example:

// AWS S3 example
public function someAction()
{
    $client = $this->get('aws.s3');

    // Upload an object to Amazon S3
    $result = $client->putObject(array(
        'Bucket' => $bucket,
        'Key'    => 'data.txt',
        'Body'   => 'Hello!'
    ));
    // ...
}

For more reference check official SDK documentation

统计信息

  • 总下载量: 209.71k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 22
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 1

GitHub 信息

  • Stars: 18
  • Watchers: 4
  • Forks: 13
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-06-07