jurager / media
File and media management for Laravel with S3, image conversions, and polymorphic model attachment
dev-main
2026-05-18 06:50 UTC
Requires
- php: ^8.4
- illuminate/contracts: ^11.0|^12.0|^13.0
- illuminate/database: ^11.0|^12.0|^13.0
- illuminate/filesystem: ^11.0|^12.0|^13.0
- illuminate/http: ^11.0|^12.0|^13.0
- illuminate/queue: ^11.0|^12.0|^13.0
- illuminate/support: ^11.0|^12.0|^13.0
- intervention/image: ^3.0
Requires (Dev)
- laravel/pint: ^1.0
- orchestra/testbench: ^9.0|^10.0
- phpunit/phpunit: ^11.0|^12.0
Suggests
- ext-gd: Required for GD image driver (default)
- ext-ghostscript: Required by PdfConverter to rasterize PDF files
- ext-imagick: Required for Imagick driver and PdfConverter
This package is auto-updated.
Last update: 2026-05-18 06:51:05 UTC
README
Polymorphic file and media management for Laravel. Attach images, PDFs, and any other files to any Eloquent model with S3 storage, automatic image conversions (thumbnails, WebP), EXIF stripping, and per-collection constraints.
- Works with any Laravel disk — local, S3, or custom
- Automatic image resizing and format conversion via Intervention Image
- Async conversion queue with sync fallback
- Download files from remote URLs or base64 strings
- MD5 deduplication for idempotent imports
- CDN and presigned URL support
Requirements
PHP >= 8.4 and Laravel 11.x or higher
Installation
To install, configure and learn how to use the package, see the Documentation.
License
Open source, licensed under the MIT license.