aqilixapi / s3
Apigility For Instagram Reverse API
Installs: 83
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/aqilixapi/s3
Requires
- php: >=5.3.3
- aqilixapi/image: >=1.0
- aws/aws-sdk-php-zf2: 2.0.0
Requires (Dev)
- phpunit/phpunit: 4.*
- squizlabs/php_codesniffer: 1.4.*
- zend/zend-studio-development-mode: ~1.0
- zendframework/zendframework: >=2.3.2,<3.0.0
- zfcampus/zf-apigility: 1.0.3
This package is not auto-updated.
Last update: 2025-10-15 15:52:22 UTC
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.