1. Go to this page and download the library: Download mamadali/yii2-s3-storage library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mamadali / yii2-s3-storage example snippets
'components' => [
...
's3storage' => [
'class' => 'mamadali\S3Storage\components\S3Storage',
'key' => // your access key
'secret' => // your secret key
'endpoint' => // your endpoint
'default_bucket_name' => // your bucket name
'bucket_domain' => // Optional: your bucket domain
],
...
];