PHPackages                             eben-hk/amazon-s3-php-namespace - 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. eben-hk/amazon-s3-php-namespace

ActiveLibrary

eben-hk/amazon-s3-php-namespace
===============================

A standalone Amazon S3 (REST) client for PHP 5.2.x using CURL that does not require PEAR and using namespace.

1.0.0(10y ago)01.0kBSD-2-ClausePHPPHP &gt;=5.2.0

Since Apr 4Pushed 10y ago1 watchersCompare

[ Source](https://github.com/eben-hk/amazon-s3-php-namespace)[ Packagist](https://packagist.org/packages/eben-hk/amazon-s3-php-namespace)[ Docs](https://github.com/eben-hk/amazon-s3-php-namespace)[ RSS](/packages/eben-hk-amazon-s3-php-namespace/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Amazon S3 PHP Class
===================

[](#amazon-s3-php-class)

Usage
-----

[](#usage)

OO method (e,g; $s3-&gt;getObject(...)):

```
$s3 = new S3($awsAccessKey, $awsSecretKey);
```

Statically (e,g; S3::getObject(...)):

```
S3::setAuth($awsAccessKey, $awsSecretKey);
```

### Object Operations

[](#object-operations)

#### Uploading objects

[](#uploading-objects)

Put an object from a file:

```
S3::putObject(S3::inputFile($file, false), $bucketName, $uploadName, S3::ACL_PUBLIC_READ)
```

Put an object from a string and set its Content-Type:

```
S3::putObject($string, $bucketName, $uploadName, S3::ACL_PUBLIC_READ, array(), array('Content-Type' => 'text/plain'))
```

Put an object from a resource (buffer/file size is required - note: the resource will be fclose()'d automatically):

```
S3::putObject(S3::inputResource(fopen($file, 'rb'), filesize($file)), $bucketName, $uploadName, S3::ACL_PUBLIC_READ)
```

#### Retrieving objects

[](#retrieving-objects)

Get an object:

```
S3::getObject($bucketName, $uploadName)
```

Save an object to file:

```
S3::getObject($bucketName, $uploadName, $saveName)
```

Save an object to a resource of any type:

```
S3::getObject($bucketName, $uploadName, fopen('savefile.txt', 'wb'))
```

#### Copying and deleting objects

[](#copying-and-deleting-objects)

Copy an object:

```
S3::copyObject($srcBucket, $srcName, $bucketName, $saveName, $metaHeaders = array(), $requestHeaders = array())
```

Delete an object:

```
S3::deleteObject($bucketName, $uploadName)
```

### Bucket Operations

[](#bucket-operations)

Get a list of buckets:

```
S3::listBuckets()  // Simple bucket list
S3::listBuckets(true)  // Detailed bucket list
```

Create a bucket:

```
S3::putBucket($bucketName)
```

Get the contents of a bucket:

```
S3::getBucket($bucketName)
```

Delete an empty bucket:

```
S3::deleteBucket($bucketName)
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3687d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7bb718fc5adb1a0912f42c26616d8a512b4f076472e0bcf6c19b9516f2622b59?d=identicon)[eben-hk](/maintainers/eben-hk)

---

Top Contributors

[![eben-hk](https://avatars.githubusercontent.com/u/1275015?v=4)](https://github.com/eben-hk "eben-hk (4 commits)")

### Embed Badge

![Health badge](/badges/eben-hk-amazon-s3-php-namespace/health.svg)

```
[![Health](https://phpackages.com/badges/eben-hk-amazon-s3-php-namespace/health.svg)](https://phpackages.com/packages/eben-hk-amazon-s3-php-namespace)
```

PHPackages © 2026

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