atellitech/flysystem-s3-yii2

It's an adapter of AWS S3 for Yii2 that integrating with atellitech/flysystem-yii2.

1.0.0 2023-02-05 10:28 UTC

This package is auto-updated.

Last update: 2024-04-05 12:47:17 UTC


README

It's an adapter of AWS S3 for Yii2 that integrating with atellitech/flysystem-yii2

Supports

Getting Start

Requirements

  • php8.0+

Install

$ /lib/path/composer require atellitech/flysystem-s3-yii2

Usage

AWS S3

Add component into config file of yii2 project
...
"components": [
    "fs" => [
        'class' => 'AtelliTech\\Yii2\\FlysystemAdapterAwsS3',
        'bucketName' => '{bucketName}',
        'pathPrefix' => '{pathPrefix}', default: '' means root path of bucket
        'version' => '{version}', // default: latest
        'key' => '{key}',
        'secret' => '{secret}',
        'region' => '{region}', // default: ap-northeast-1
    ]
]

Async AWS S3

Add component into config file of yii2 project
...
"components": [
    "fs" => [
        'class' => 'AtelliTech\\Yii2\\FlysystemAdapterAwsAsyncS3',
        'bucketName' => '{bucketName}',
        'pathPrefix' => '{pathPrefix}', default: '' means root path of bucket
        'version' => '{version}', // default: latest
        'key' => '{key}',
        'secret' => '{secret}',
        'region' => '{region}', // default: ap-northeast-1
    ]
]