承接 aqilixapi/s3 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

aqilixapi/s3

最新稳定版本:1.1

Composer 安装命令:

composer require aqilixapi/s3

包简介

Apigility For Instagram Reverse API

README 文档

README

#Amazon S3 Support for aqilix-apigility-image This module add Amazon S3 support for aqilix-apigility-image module. The main tasks of this module are uploading and change the image name to S3 Object URL

Dependencies

Installation

This is a ZF2/Apigility module, so to use it on your ZF2/Apigility project need to add require on composer.json.

  "require": {
    .
    .
    .
    "aqilixapi/s3": "1.1"
  }

Run composer update then enable the module on config/application.config.php

return array(
    'modules' => array(
       .
       .
       .
       'AqilixAPI\\S3', 
       'AwsModule',
    )
)

Configuration

Because of this module require aws/aws-sdk-php-zf2, we just need to configure AWS Credential from aws/aws-sdk-php-zf2 config file (vendor/aws/aws-sdk-php-zf2/config/aws.local.php.dst). Just copy this file to config/autoload/aws.local.php and change credential and region configuration.

After prepare AWS configuration, we need to configure Amazon S3 configuration (config/s3.local.php.dist)

    's3' => array(
        'bucket' => array(
            'name' => 'aqilix',
            'acl'  => 'public-read',
        ),
        'fields' => array(
            'path'  => array('key_prefix' => 'image'),
            'thumbPath' => array('key_prefix' => 'image/thumbs')
        )
    )

Adjust bucket and fields, then copy this file to config/autoload/s3.local.php.

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-09-09