PHPackages                             jyoungblood/s3-client - 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. jyoungblood/s3-client

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

jyoungblood/s3-client
=====================

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

1.0.0(2y ago)012[1 issues](https://github.com/jyoungblood/s3-client/issues)BSD-2-ClausePHPPHP &gt;=5.2.0

Since Apr 29Pushed 2y ago1 watchersCompare

[ Source](https://github.com/jyoungblood/s3-client)[ Packagist](https://packagist.org/packages/jyoungblood/s3-client)[ Docs](https://github.com/jyoungblood/s3-client)[ RSS](/packages/jyoungblood-s3-client/feed)WikiDiscussions main Synced 1mo ago

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

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

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

(new version forked from [amazon-s3-php-class](https://github.com/tpyo/amazon-s3-php-class))

Updates and improvements planned, but it's pretty much the same as the original for now.

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

[](#installation)

```
composer require jyoungblood/s3-client

```

Usage
-----

[](#usage)

```
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

21

—

LowBetter than 19% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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

740d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f4130bfc70d308f890899a0c223f9888271f0fd3f91879b09558ba696862d8d4?d=identicon)[jyoungblood](/maintainers/jyoungblood)

---

Top Contributors

[![jyoungblood](https://avatars.githubusercontent.com/u/56104?v=4)](https://github.com/jyoungblood "jyoungblood (1 commits)")

### Embed Badge

![Health badge](/badges/jyoungblood-s3-client/health.svg)

```
[![Health](https://phpackages.com/badges/jyoungblood-s3-client/health.svg)](https://phpackages.com/packages/jyoungblood-s3-client)
```

###  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.8M123](/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.7M61](/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)
