PHPackages                             stetodd/s3-multipart-upload-bundle - 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. stetodd/s3-multipart-upload-bundle

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

stetodd/s3-multipart-upload-bundle
==================================

Direct-to-S3 multipart upload endpoints for Symfony (Uppy-compatible): create, sign parts, complete and abort via presigned URLs

v0.2.0(2w ago)025↓50%MITPHPPHP &gt;=8.4

Since Jun 12Pushed 2w agoCompare

[ Source](https://github.com/stetodd/s3-multipart-upload-bundle)[ Packagist](https://packagist.org/packages/stetodd/s3-multipart-upload-bundle)[ RSS](/packages/stetodd-s3-multipart-upload-bundle/feed)WikiDiscussions main Synced 1w ago

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

stetodd/s3-multipart-upload-bundle
==================================

[](#stetodds3-multipart-upload-bundle)

Direct-to-S3 multipart upload endpoints for Symfony, compatible with [Uppy's AwsS3 multipart flow](https://uppy.io/docs/aws-s3/): create an upload, presign each part, then complete or abort — all against any S3-compatible store (AWS, R2, minio).

Install
-------

[](#install)

```
composer require stetodd/s3-multipart-upload-bundle
```

Register in `config/bundles.php`:

```
Stetodd\S3MultipartUploadBundle\StetoddS3MultipartUploadBundle::class => ['all' => true],
```

Configure targets in `config/packages/stetodd_s3_multipart_upload.yaml`. Each target maps a client-supplied `targetType` to an S3 client service, bucket and key prefix:

```
stetodd_s3_multipart_upload:
    required_grant: IS_AUTHENTICATED   # optional; null leaves access control to the app
    # presign_expiry: '+20 minutes'
    targets:
        artifact:
            client: app.storage.artifacts        # service id of an Aws\S3\S3Client
            bucket: '%env(S3_BUCKET)%'
            base_path: 'artifact'
            tag: 'artifact-media'
            allowed_content_types: [image/jpeg, image/png, image/webp]
```

Import the routes with whatever prefix you like (`config/routes/stetodd_s3_multipart_upload.yaml`):

```
stetodd_s3_multipart_upload:
    resource: '@StetoddS3MultipartUploadBundle/config/routes.php'
    prefix: /s3
```

Endpoints
---------

[](#endpoints)

MethodPathBody / queryResponseOPTIONS`/create`—204POST`/create``{targetType, contentType, filename}``{key, uploadId}`GET`/parts/sign``?uploadId=&partNumber=``{url}` (presigned)POST`/complete``{uploadId, parts: [{PartNumber, ETag}]}``{success: true}`\*DELETE`/abort``{uploadId}``{}`\* listeners can replace any create/complete response — see below.

Application seams
-----------------

[](#application-seams)

The bundle deliberately persists nothing. Two integration points connect it to your domain:

**1. Upload resolver (required for sign/complete/abort).** Map an `uploadId` back to the object key and target you stored when the upload was created:

```
use Symfony\Component\DependencyInjection\Attribute\AsAlias;

#[AsAlias(UploadResolverInterface::class)]
final readonly class FileUploadResolver implements UploadResolverInterface
{
    public function resolve(string $uploadId): ResolvedUpload
    {
        $upload = $this->repository->findByUploadId($uploadId)
            ?? throw UploadNotFoundException::forUploadId($uploadId);

        return new ResolvedUpload($upload->getKey(), $upload->getTargetType());
    }
}
```

Unknown ids surface as 404s.

**2. Lifecycle events.** Subscribe to persist your upload record and run post-completion behaviour:

- `MultipartUploadCreated` — `descriptor` (filename, uploadId, key, bucket, tag) + `target`; persist your record here. `setResponse()` overrides the default `{key, uploadId}` body.
- `MultipartUploadCompleted` — `uploadId`, `key`, `target`; mark your record complete, kick off processing, and optionally `setResponse()` (e.g. return the created domain resource).
- `MultipartUploadAborted` — `uploadId`, `key`, `target`.

Storage services
----------------

[](#storage-services)

Each configured target also exposes `stetodd_s3_multipart_upload.storage.` (a `MultipartStorageInterface`) with presigned GET URLs (`getTemporaryUrl`), part listing and ranged reads (`readRange`) for use elsewhere in your app, resolvable by target string via `TargetStorageLocator`.

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance96

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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

Every ~27 days

Total

2

Last Release

18d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1611641?v=4)[Steve Todd](/maintainers/stetodd)[@stetodd](https://github.com/stetodd)

---

Top Contributors

[![stetodd](https://avatars.githubusercontent.com/u/1611641?v=4)](https://github.com/stetodd "stetodd (2 commits)")

### Embed Badge

![Health badge](/badges/stetodd-s3-multipart-upload-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/stetodd-s3-multipart-upload-bundle/health.svg)](https://phpackages.com/packages/stetodd-s3-multipart-upload-bundle)
```

###  Alternatives

[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M605](/packages/shopware-core)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M401](/packages/easycorp-easyadmin-bundle)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M425](/packages/drupal-core-recommended)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k64](/packages/open-dxp-opendxp)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M215](/packages/sulu-sulu)

PHPackages © 2026

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