PHP code example of horidaisuke / cakephp-aws-s3bucket
1. Go to this page and download the library: Download horidaisuke/cakephp-aws-s3bucket 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/ */
horidaisuke / cakephp-aws-s3bucket example snippets
'Datasources' => [
// ... after database configurations
'name_of_s3_datasource' => [
'className' => 'S3Bucket\Datasource\Connection',
'bucketName' => 'name_of_s3_bucket',
'acl' => 'public-read', // if object set to public access (default set to private)
'client' => [
'region' => 'name_of_region',
],
],
],