Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Media Bundle

Media Bundle Laravel Package

opifer/media-bundle

Opifer MediaBundle is a Symfony bundle for managing and displaying media assets such as images, videos, and files. It provides media entities, upload handling, and Twig helpers for embedding media in templates.

View on GitHub
Deep Wiki
Context7

Opifer MediaBundle is a Symfony bundle for managing and serving media assets in PHP applications. It provides a central media library for uploads, folders and reusable files, keeping images and documents separate from application logic.

  • Folder-based media library for organising uploaded files and images
  • Doctrine-backed entities for media, folders and metadata
  • Image handling for thumbnails and display-ready assets
  • Template integration for rendering and selecting media
  • Extensible design for custom storage and processing workflows
Frequently asked questions about Media Bundle
Is opifer/media-bundle compatible with Laravel?
No. opifer/media-bundle is a Symfony bundle, not a Laravel package. It expects AppKernel registration, a Symfony DI container with compiler passes, Doctrine ORM mappings, Symfony Form types, Twig templates, and Symfony's security/ACL layer. Laravel's service providers, Eloquent, Blade, and Gates/Policies are conceptually similar but API-incompatible, so the bundle cannot be dropped into a Laravel app.
Can I install opifer/media-bundle in a Laravel app with Composer?
Composer installation is not a viable path for a Laravel application. The package is a read-only subtree split of a Symfony bundle with no Laravel package manifest, no publishable config, and dependencies tied to Symfony components, Doctrine, and Twig. Even if Composer resolves some dependencies, the bundle lifecycle and runtime contracts will not load in Laravel, leaving you with an unusable dependency.
What Laravel versions does opifer/media-bundle support?
None. The package supports Symfony 2.x/3.x-era stacks and predates modern Laravel releases, with its last release on 2015-12-08. There is no Laravel service provider, facade, config file, or test harness. Treat any claim of Laravel version support as incorrect.
What is opifer/media-bundle used for?
It provides a media library for uploading, storing, organizing, and browsing files and images in a Symfony application. Features include folder management, reusable media entities attachable to arbitrary owning entities, storage abstraction, and integration points for admin and content-editing workflows. The design is a reusable pattern, but the implementation is Symfony-specific.
How do I install opifer/media-bundle in a Symfony app?
You register it as a bundle in AppKernel in a legacy Symfony 2.x/3.x application, configure Doctrine mappings and security/ACL permissions, and wire the admin or content-editing integration. It is archived and unmaintained, with a last release from 2015, so installation is only marginal even in legacy Symfony apps already pinned to that era. There is no supported modern installation path.
Does opifer/media-bundle work with Symfony 5 or Symfony 6?
No. The bundle targets Symfony 2.x/3.x with PHP 5.6/7.0-era dependencies and Doctrine ORM 2.4-era mappings. Its service definitions, compiler passes, and container APIs will not load on Symfony 5 or 6. Even a modern Symfony application should not consider it a candidate.
Is opifer/media-bundle maintained and safe for production use?
No. The repository is archived, the last release was 2015-12-08, and there is no upstream maintenance or CVE triage. Because it handles file uploads and image processing, it sits on the highest-value attack surface in an application, including unrestricted upload, image-parser denial of service, SSRF via remote fetch, and path traversal in storage adapters. The absence of reported CVEs reflects obscurity, not safety.
Can I use opifer/media-bundle as a reference architecture for a Laravel media library?
Yes, as a design reference only. Reading the entity model, storage abstraction boundaries, and thumbnail/transform pipeline is a sensible one-to-three-day exercise for a Laravel team. The domain pattern of media as a first-class entity attachable to arbitrary owners is sound and reusable. Do not port it as a dependency; reimplement the concepts with Laravel-native service providers, Eloquent, Storage, and Gates/Policies.
What are good Laravel alternatives to opifer/media-bundle for media uploads and image transforms?
For Laravel, use maintained packages such as spatie/laravel-medialibrary or build a small custom media model on Laravel's filesystem and Storage facade with Intervention Image for transforms. These align with Laravel service providers, Eloquent, queues, and authorization instead of Symfony DI and Doctrine. If you need CMS-grade asset management, evaluate a maintained Laravel CMS rather than an archived Symfony bundle.
What license is opifer/media-bundle under, and does that matter for Laravel?
The license is MIT, so legal reuse is fine, but that is not the blocker. The blocker is technical: it is an abandoned Symfony bundle with no Laravel integration path. Any fork would need to own the upload and image-processing security surface indefinitely.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect