PHPackages                             horidaisuke/cakephp-aws-s3bucket - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. horidaisuke/cakephp-aws-s3bucket

AbandonedArchivedCakephp-plugin[File &amp; Storage](/categories/file-storage)

horidaisuke/cakephp-aws-s3bucket
================================

AWS S3Bucket plugin for CakePHP 4.x

v0.1.0(5y ago)2492MITPHPPHP &gt;=7.2

Since Sep 15Pushed 2y ago2 watchersCompare

[ Source](https://github.com/horidaisuke/cakephp-aws-s3bucket)[ Packagist](https://packagist.org/packages/horidaisuke/cakephp-aws-s3bucket)[ RSS](/packages/horidaisuke-cakephp-aws-s3bucket/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (5)Versions (3)Used By (0)

\[Departed\] AWS S3Bucket plugin for CakePHP 4.x
================================================

[](#departed-aws-s3bucket-plugin-for-cakephp-4x)

Installation
------------

[](#installation)

You can install this plugin into your CakePHP 4.x application using [composer](https://getcomposer.org).

The recommended way to install composer packages is:

```
composer require horidaisuke/cakephp-aws-s3bucket

```

How to Use
----------

[](#how-to-use)

### 1.Configure DataSource

[](#1configure-datasource)

You can configure S3 bucket datasource like as database at datasource section in `app_xxx.php`.

For example:

```
'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',
        ],
    ],
],
```

### 2. Create S3Bucket Model

[](#2-create-s3bucket-model)

You can create a model for each object key prefixes at namespace `App\Model\S3Bucket`.

For example:

```
