PHPackages                             glofox/cakephp-amazon-s3 - 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. glofox/cakephp-amazon-s3

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

glofox/cakephp-amazon-s3
========================

Legacy and Deprecated Amazon S3 Plugin for CakePHP

0281PHPCI failing

Since Apr 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/glofoxinc/cakephp-amazon-s3)[ Packagist](https://packagist.org/packages/glofox/cakephp-amazon-s3)[ RSS](/packages/glofox-cakephp-amazon-s3/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

Amazon S3 Plugin for CakePHP 2.x
================================

[](#amazon-s3-plugin-for-cakephp-2x)

A CakePHP Plugin to interact with Amazon Web Services S3 objects. This plugin provides a simple and robust methods that can be added to any CakePHP project to complete the following:

- Retrieve a remote file from an S3 bucket and save locally
- Save a local file in an S3 bucket
- Delete a file in an S3 bucket

### Requirements

[](#requirements)

- CakePHP 2.x
- An Amazon Web Services account ()
- Your AWS access key and secret key

### Installation

[](#installation)

```
composer require gianksp/cakephp-amazon-s3:dev-master
```

### Usuage examples

[](#usuage-examples)

Remember to add `CakePlugin::load('AmazonS3');` to your app's bootstrap file.

Then, simply initialise the plugin with your AWS Access key, secret key and the bucket name you wish to work with.

```
App::uses('AmazonS3', 'AmazonS3.Lib');
$AmazonS3 = new AmazonS3(array('{access key}', '{secret key}', '{bucket name}'));
```

### GET

[](#get)

The `get` method retrieves a remote file and saves it locally. So let's say there is the file `foo.jpg` on S3 and you want to save it locally in `/home/me/stuff/photos` you'd use the following.

```
$AmazonS3->get('foo.jpg' , '/home/me/stuff/photos');
```

### PUT

[](#put)

The `put` method does the reverse of `get`, and saves a local file to S3.

```
$AmazonS3->put('/home/me/stuff/photos/foo.jpg');
```

You can optionally specifiy a remote directory within the bucket to save the file in. Be sure not to include a starting / in the remote directory string.

```
$AmazonS3->put('/home/me/stuff/photos/foo.jpg' , 'some/folder');
```

To add any additional AWS headers to a `put`, example to set the file as "public", they can be passed as an array to the `amazonHeaders` property.

```
$AmazonS3->amazonHeaders = array(
	'x-amz-acl' => 'public-read',
	'X-Amz-Meta-ReviewedBy' => 'john.doe@yahoo.biz'
);
$AmazonS3->put('/home/me/stuff/photos/foo.jpg' , 'some/folder');
```

### DELETE

[](#delete)

Deletes a file from S3.

```
$AmazonS3->delete('foo.jpg');
```

Or delete from within a directory in the bucket. Be sure not to include a starting / in the string or you will receive a SignatureDoesNotMatch error:

```
$AmazonS3->delete('some/folder/foo.jpg');
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 71.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c5933aa58cc8662aae000b0041aa7dd04e3dc0d519c21071c80f6df6452de6a?d=identicon)[glofox](/maintainers/glofox)

---

Top Contributors

[![robmcvey](https://avatars.githubusercontent.com/u/222958?v=4)](https://github.com/robmcvey "robmcvey (27 commits)")[![gsanchez-glofox](https://avatars.githubusercontent.com/u/21223778?v=4)](https://github.com/gsanchez-glofox "gsanchez-glofox (5 commits)")[![felipefrancisco](https://avatars.githubusercontent.com/u/2165248?v=4)](https://github.com/felipefrancisco "felipefrancisco (3 commits)")[![josegonzalez](https://avatars.githubusercontent.com/u/65675?v=4)](https://github.com/josegonzalez "josegonzalez (2 commits)")[![cameronlockey](https://avatars.githubusercontent.com/u/2140971?v=4)](https://github.com/cameronlockey "cameronlockey (1 commits)")

### Embed Badge

![Health badge](/badges/glofox-cakephp-amazon-s3/health.svg)

```
[![Health](https://phpackages.com/badges/glofox-cakephp-amazon-s3/health.svg)](https://phpackages.com/packages/glofox-cakephp-amazon-s3)
```

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M125](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
