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

siganushka/media-bundle

Symfony bundle for managing media files and image uploads. Provides Doctrine-backed media entities, storage abstraction, and thumbnail handling so you can attach and serve files from your application entities with minimal configuration.

View on GitHub
Deep Wiki
Context7

Media Bundle.

Frequently asked questions about Media Bundle
Is siganushka/media-bundle compatible with Laravel?
No. siganushka/media-bundle is a Symfony bundle built around Symfony forms, Doctrine, and Twig, not a Laravel package. It will not integrate with Laravel's Eloquent models, Blade templates, or filesystem APIs as a typical Laravel Composer package. Laravel developers should use Laravel-specific media libraries or implement uploads with Laravel's filesystem and Eloquent.
How do I install siganushka/media-bundle in a Symfony application?
Install it with Composer using composer require siganushka/media-bundle. If your app does not use Symfony Flex, enable the bundle in config/bundles.php. Then configure storage and path settings and run Doctrine migrations for the Media entity. Check the repository README for the exact configuration keys and setup steps.
What does the Doctrine Media entity store in this bundle?
The bundle provides a Doctrine-backed Media entity for file metadata and references to uploaded files. It is designed to let you attach media to any application entity through Doctrine relations instead of rebuilding upload metadata logic. The exact stored fields depend on the bundle implementation, so review the entity source or README for details such as filename, path, and related metadata.
How do upload form types work for attaching images and files?
The bundle provides Symfony form types for uploading files and selecting existing media. You add these form types to your Symfony forms, and the bundle's storage and path services handle where files are saved. Twig helpers then help render the resulting media in your templates.
Can I configure custom storage paths and directories?
Yes. The bundle provides configurable storage and file path handling for uploaded media. You configure the relevant storage and path options in your Symfony bundle configuration. This lets you control where uploads are saved and how media paths are generated. Check the README for the exact configuration keys.
Does siganushka/media-bundle support image thumbnails and filters?
Yes, the bundle includes image filter and thumbnail support. This allows you to generate filtered or thumbnail versions of uploaded images. Twig helpers can help render the appropriate media in your templates. The exact filter setup depends on the bundle's configuration options.
What Twig helpers does the bundle provide for rendering media?
The bundle provides Twig helpers for rendering media files. These helpers are intended to reduce template boilerplate when outputting image URLs or media references. The exact helper names and usage are documented in the repository README. You can use them alongside the Media entity and storage services.
How do I test media uploads in Symfony with this bundle?
Use Symfony's form and HTTP kernel test tools to submit multipart file uploads. Configure a temporary test storage path or mock the storage service to avoid writing to production directories. Assert that the Media entity was persisted with the expected metadata and clean up temporary files after tests.
Is siganushka/media-bundle production-ready and actively maintained?
Check the repository's recent commits, release tags, issue activity, and README before using it in production. It is a smaller Symfony bundle, so maintenance status and long-term support should be evaluated for your project. Pin a tested version and verify uploads, storage, and thumbnails in staging before deployment.
What are alternatives to siganushka/media-bundle for Laravel developers?
For Laravel, consider Spatie Laravel Media Library, Laravel filesystem uploads with Eloquent models, or other Laravel-specific media packages. This bundle is Symfony-specific and is not a Laravel alternative. If you are working in Symfony, alternatives include VichUploaderBundle and LiipImagineBundle depending on your upload and image-processing needs.
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