Download the PHP package vadage/presigned-uploader-bundle without Composer

On this page you can find all versions of the php package vadage/presigned-uploader-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 presigned-uploader-bundle

VadagePresignedUploaderBundle

CI Packagist Version PHP Version

Direct-to-storage uploads for Symfony with presigned URLs. The browser uploads straight to an S3-compatible storage (AWS S3, Cloudflare R2, SeaweedFS, ...) and the file never passes through PHP: your application validates and signs the upload, verifies the stored file, and attaches it to your entity or DTO.

Constraints are declared next to the property and checked before a URL is handed out. Size, content type and an optional SHA-256 checksum are part of the signature, and a presigned URL can only write once. Before a file is attached, it is checked again, including the type detected from its content. With Doctrine, claims and deletions follow your transaction, so a rollback leaves no orphaned files and no referenced file gets deleted.

The bundle comes with a form type and Stimulus controller, a framework-agnostic JavaScript client, and serializer support for APIs (API Platform, #[MapRequestPayload]). It handles multiple storages, staging with promotion on claim, Flysystem targets, storage event webhooks (R2, S3) and the cleanup of unclaimed uploads.

Requirements

Installation

With Symfony Flex, the recipe enables the bundle, imports the routes under /uploads and creates config/packages/vadage_presigned_uploader.yaml. See Installation for setups without Flex (or its recipe), the database tables, the frontend and the bucket's CORS rule.

Configure an S3 client and a storage:

Map a property and declare its constraints:

Add it to a form. The type guesser picks PresignedUploadType; the Stimulus controller uploads the file and the form submits only the upload id:

The upload is verified when the form is submitted, and claimed in the transaction that flushes the entity. Create the database tables, set up the frontend and allow PUT requests in the bucket's CORS rule as described in Installation, and schedule the cleanup command. The upload endpoints are public until you restrict them, see Security.

Documentation

Security issues

If you think you have found a security issue, please do not open a public issue. Follow the security policy instead.

Backward compatibility

From 1.0 on, the bundle follows Semantic Versioning; code marked @internal and the markup of the form theme are not covered. Until then, minor versions may contain breaking changes, listed in the changelog.

AI assistance

The initial version of this bundle was built with heavy assistance from AI coding tools (Claude), directed and reviewed by its author, who set the design, the public API and the scope. Later AI-assisted changes are marked with an Assisted-by: trailer in their commit message, see Contributing.

All code, generated or not, is held to the same checks: PHPStan at level 10 with strict rules, the Symfony coding standard, Rector, and PHPUnit against the supported PHP versions with highest and lowest dependencies and against SQLite, MySQL and PostgreSQL.

The maintainers are responsible for the bundle: bugs and security issues are ours to fix, see the security policy.

License

Released under the MIT License.


All versions of presigned-uploader-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
ext-fileinfo Version *
async-aws/core Version ^1.27
async-aws/s3 Version ^3.5
psr/clock Version ^1.0
psr/container Version ^2.0
psr/log Version ^3.0
symfony/clock Version ^7.4 || ^8.0
symfony/config Version ^7.4 || ^8.0
symfony/dependency-injection Version ^7.4 || ^8.0
symfony/event-dispatcher-contracts Version ^3.6
symfony/framework-bundle Version ^7.4 || ^8.0
symfony/http-foundation Version ^7.4 || ^8.0
symfony/http-kernel Version ^7.4 || ^8.0
symfony/mime Version ^7.4 || ^8.0
symfony/routing Version ^7.4 || ^8.0
symfony/uid Version ^7.4 || ^8.0
symfony/validator Version ^7.4 || ^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 vadage/presigned-uploader-bundle contains the following files

Loading the files please wait ...