Download the PHP package cesurapp/storage-bundle without Composer
On this page you can find all versions of the php package cesurapp/storage-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cesurapp/storage-bundle
More information about cesurapp/storage-bundle
Files in cesurapp/storage-bundle
Package storage-bundle
Short Description Symfony storage bundle
License MIT
Homepage https://github.com/cesurapp/storage-bundle
Informations about the package storage-bundle
Storage Bundle
Symfony file storage abstraction bundle with support for local and cloud storage providers.
- No database dependency - Pure file storage operations
- S3-compatible - Uses async-aws/s3 for cloud storage
- Multiple devices - Configure and use multiple storage providers simultaneously
- Fully tested - Complete test coverage for all drivers
Supported Drivers
- Local - Filesystem-based storage
- Cloudflare R2 - S3-compatible object storage
- BackBlaze B2 - S3-compatible object storage
Installation
Requires Symfony 8 and PHP 8.4+
Configuration
Create config/packages/storage.yaml:
Available Regions (BackBlaze)
Usage
Using Specific Storage Device
Upload with Metadata (Cloud Only)
Pre-signed URLs (Cloud Only)
Pre-signed Upload URLs (Cloud Only)
Hand a third party a URL it can PUT a single object to, without ever giving it storage
credentials. Always signed against the S3 endpoint — a configured CDN domain fronts reads only.
Neither the body (signed as UNSIGNED-PAYLOAD) nor Content-Type is covered by the signature, so
the uploader chooses both. It should still send the intended Content-Type — S3/R2 stores it as the
object's metadata and serves it back on download. The URL is bound to one bucket, one key and one
verb, and expires. The local driver throws a LogicException: it has no upload endpoint to hand out.
Local Driver Specific Methods
Testing
Tests for cloud providers require access credentials. Tests without credentials are automatically skipped.
Configure Test Credentials
Edit phpunit.xml.dist:
Run Tests
API Reference
For detailed usage guidelines and best practices, see GUIDELINES.md
License
MIT License - see LICENSE for details
All versions of storage-bundle with dependencies
ext-fileinfo Version *
symfony/dependency-injection Version ^8.1
symfony/http-kernel Version ^8.1
symfony/framework-bundle Version ^8.1
async-aws/s3 Version ^3.5