Download the PHP package stetodd/s3-multipart-upload-bundle without Composer

On this page you can find all versions of the php package stetodd/s3-multipart-upload-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package s3-multipart-upload-bundle

stetodd/s3-multipart-upload-bundle

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

Install

Register in config/bundles.php:

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:

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

Endpoints

Method Path Body / query Response
OPTIONS /create 204
POST /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

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:

Unknown ids surface as 404s.

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

Storage services

Each configured target also exposes stetodd_s3_multipart_upload.storage.<name> (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.


All versions of s3-multipart-upload-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.4
aws/aws-sdk-php Version ^3.300
psr/container Version ^1.1|^2.0
psr/event-dispatcher Version ^1.0
symfony/config Version ^7.2|^8.0
symfony/dependency-injection Version ^7.2|^8.0
symfony/event-dispatcher Version ^7.2|^8.0
symfony/http-foundation Version ^7.2|^8.0
symfony/http-kernel Version ^7.2|^8.0
symfony/routing Version ^7.2|^8.0
symfony/security-core Version ^7.2|^8.0
symfony/serializer Version ^7.2|^8.0
symfony/validator Version ^7.2|^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package stetodd/s3-multipart-upload-bundle contains the following files

Loading the files please wait ...