PHPackages                             joegreen0991/s3multiupload - 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. joegreen0991/s3multiupload

ActiveLibrary

joegreen0991/s3multiupload
==========================

A class for uploading direct to s3 with chunked uploads

120[1 PRs](https://github.com/joegreen0991/s3multiupload/pulls)PHP

Since Aug 13Pushed 6y ago1 watchersCompare

[ Source](https://github.com/joegreen0991/s3multiupload)[ Packagist](https://packagist.org/packages/joegreen0991/s3multiupload)[ RSS](/packages/joegreen0991-s3multiupload/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

s3multiupload
=============

[](#s3multiupload)

Full example for uploading directly to Amazon S3 with plupload and chunked uploads

```
    // We need to give our class an instance of the S3Client
    $s3Client = \Aws\Common\Aws::factory(array(
      'key'    => S3_KEY,
    	'secret' => S3_SECRET,
    	'region' => S3_REGION
    ))->get('s3');

    // We also need to pass in a storage handler, so we can remember the multipart_id between requests - use native sessions, or roll your own
    $keyStorage = new S3MultiUpload\KeyStorage\NativeSession;

    // Create our object to manage the signing server side - we generate the url and all the params, but hand it back to the client to send the actual data
    $s3 = new S3MultiUpload\Client($s3Client, $keyStorage);

    switch ($_REQUEST['action']) {

    	case 'sign' :

    		if(empty($_REQUEST['uploadId'])){
    			// This is a new upload

    			$filename = $_REQUEST['name']; // Using original file name, but you could use randomly generated names etc...

    			$multipart_id = $s3->createMultipart(S3_BUCKET, $filename);

    		}else{

    			$multipart_id = $_REQUEST['uploadId'];
    		}

    		die(json_encode($s3->signMultipart($multipart_id, $_REQUEST['chunk'], array('Content-Type' => 'application/octet-stream'))));

    	case 'complete' :

    		die(json_encode($s3->completeMultipart($_REQUEST['uploadId'])));

    }
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![mrjgreen](https://avatars.githubusercontent.com/u/2183391?v=4)](https://github.com/mrjgreen "mrjgreen (8 commits)")

### Embed Badge

![Health badge](/badges/joegreen0991-s3multiupload/health.svg)

```
[![Health](https://phpackages.com/badges/joegreen0991-s3multiupload/health.svg)](https://phpackages.com/packages/joegreen0991-s3multiupload)
```

PHPackages © 2026

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