- Can I use **Easy Media Bundle** in a Laravel project without Symfony or EasyAdmin?
- No, this bundle is specifically designed for Symfony and EasyAdmin. If your Laravel project doesn’t use EasyAdmin, you’d need an alternative like Laravel Filemanager or Spatie Media Library, which are Laravel-native solutions.
- What Laravel/Symfony versions does **Easy Media Bundle** support?
- The latest version (3.x) supports Symfony 6.4+ and 7.x, with PHP 8.2+. For Laravel, you’d need to bridge it via Symfony’s integration (e.g., Laravel Symfony Bridge) or use a Laravel-compatible alternative.
- How do I integrate this bundle into an existing Laravel/EasyAdmin project?
- First, install via Composer (`composer require agence-adeliom/easy-media-bundle`). Configure it in your Symfony/EasyAdmin setup, then ensure VueJS is properly bundled (Webpack Encore/Vite). Laravel projects may need extra steps to bridge Symfony dependencies.
- Does **Easy Media Bundle** support cloud storage like AWS S3 or Google Cloud?
- Yes, it works with any PSR-compliant storage backend (e.g., Symfony’s Filesystem or League’s Flysystem). Configure your storage adapter in Symfony’s `framework.yaml` or the bundle’s settings to use S3, GCS, or others.
- Can I upload files via URL (e.g., direct image links or YouTube embeds)?
- Yes, the bundle supports uploading images from URLs and embedding oEmbed content (e.g., YouTube videos). This is configured via the VueJS media manager UI, which includes a dedicated URL upload field.
- How does bulk selection and actions work in **Easy Media Bundle**?
- Bulk selection allows you to select multiple files/folders via checkboxes or keyboard shortcuts (e.g., Ctrl+Click). Actions like move, delete, download, or copying links are then enabled in the UI toolbar for the selected items.
- Is there an image editor included, and how customizable is it?
- Yes, the bundle includes a basic image editor (crop, resize) accessible via the preview modal. Customization is limited to the built-in tools, but you can extend it by overriding VueJS components or adding custom filters via Symfony’s asset pipeline.
- What security measures are in place for file uploads?
- The bundle sanitizes filenames and validates MIME types, but you should add extra security layers like virus scanning (e.g., ClamAV) or size limits in Symfony’s `upload_max_filesize` settings. Avoid relying solely on the bundle for security.
- How do I handle large media libraries (e.g., 10,000+ files) with this bundle?
- Performance may degrade with large libraries due to client-side rendering. Optimize by enabling lazy loading, increasing server-side pagination, or using a CDN for static assets. Test with your expected scale before production.
- Are there alternatives to **Easy Media Bundle** for Laravel that don’t require Symfony?
- Yes, consider **Spatie Media Library** (Laravel-native, supports S3, local storage), **Laravel Filemanager** (simple UI for file management), or **Intervention Image** (for image processing). These avoid Symfony dependencies entirely.