- Is modera/file-repository-bundle compatible with Laravel?
- No. Despite appearing in Laravel package listings, this is a Symfony bundle, evidenced by the Bundle suffix, the Modera vendor, and the absence of a laravel Composer type, service provider, facade, or publishable config. It registers through Symfony's Kernel::registerBundles() and Symfony DI configuration trees, so Laravel's package auto-discovery will ignore it entirely. There is no Eloquent integration and no binding to Laravel's Storage facade.
- Can I install modera/file-repository-bundle in a Laravel 11 or 12 application?
- In practice, no. The 2016-era bundle pins PHP ~5.5|~7.0 and Symfony ~2.7|~3.0 components, while Laravel 10, 11 and 12 ship Symfony 6 and 7 components such as http-foundation, console, process and finder. Composer will hard-conflict on those shared packages before any of your code runs. Running composer why-not php 8.2 in a scratch project will produce the concrete conflict list if you want proof.
- What does modera/file-repository-bundle actually do?
- It provides a configurable file repository abstraction for Symfony applications, giving you reusable repository services for storing, retrieving and managing uploaded files. Internally it relies on the Gaufrette filesystem abstraction layer, so the same repository code can target local disks or remote adapters like S3 and OpenStack. If you only need the repository pattern rather than the bundle itself, treat it as reference material and implement the pattern natively.
- Does modera/file-repository-bundle work with PHP 8.2 and Symfony 6 or 7?
- No, not without a fork. The package's dependency constraints target PHP 5.5 through 7.0 and Symfony 2.7 through 3.0, which are long past end of life. Supporting modern PHP and Symfony 6 or 7 means rewriting the bundle's plumbing against current component APIs. That is a greenfield effort, not an upgrade path.
- Is modera/file-repository-bundle still maintained?
- It has not been updated since 2016-06-10, roughly nine years ago, with only three GitHub stars and no dependents. That means no PHP 8 compatibility work, no bug fixes and no security patches. If you adopt it, you are effectively committing to owning a permanent fork, including security response.
- How do you install and configure modera/file-repository-bundle in Symfony?
- You would require it via Composer, register the bundle in your Kernel::registerBundles() method, and configure its repository and filesystem adapter settings in your Symfony config tree. The exact keys depend on the version in the repository, since the bundle predates Symfony Flex recipes. This installation flow has no equivalent in Laravel, which is why a Laravel bridge is not a realistic option.
- Can modera/file-repository-bundle store files on S3 or OpenStack?
- Yes, in principle. Because it delegates byte storage to Gaufrette, any Gaufrette filesystem adapter can be plugged in, including S3 and OpenStack Swift. However, that adapter layer is configured through Symfony service definitions, so nothing here maps onto Laravel's Storage disk configuration.
- How would I test file storage if I fork or port this bundle?
- Write acceptance tests against observed bundle behavior before porting, so feature parity is measurable rather than assumed. In a Laravel re-implementation, use Storage::fake() with Flysystem in-memory adapters to assert that blobs land at the expected paths, and assert on your Eloquent metadata model separately from the byte layer. Keep derivative generation such as thumbnails behind queued jobs so you can test them synchronously with Queue::fake().
- Is modera/file-repository-bundle safe to run in production?
- Shipping a nine-year-old upload component into a production application is unquantified CVE exposure with no upstream maintainer to patch it. File handling is a security-sensitive surface, covering unrestricted upload, MIME sniffing, path traversal and storage ACLs, and none of that has been reviewed or updated since 2016. The technical risk is very high, and there is no release cadence to rely on.
- What are the best Laravel alternatives for file repository and media management?
- Start with native Laravel: an Eloquent model for file metadata on top of Illuminate\Support\Facades\Storage, which is already Flysystem-backed and supports S3 and other disks out of the box. Add spatie/laravel-medialibrary if you need media collections and conversions, and intervention/image or Glide for transformations. Queued jobs handle derivatives and thumbnails. If you specifically want the repository abstraction this bundle implements, port that pattern rather than the Symfony package.