Download the PHP package emaia/laravel-mediaman without Composer
On this page you can find all versions of the php package emaia/laravel-mediaman. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download emaia/laravel-mediaman
More information about emaia/laravel-mediaman
Files in emaia/laravel-mediaman
Package laravel-mediaman
Short Description MediaMan - Elegant & powerful media management package for Laravel!
License MIT
Homepage https://github.com/emaia/laravel-mediaman
Informations about the package laravel-mediaman
Laravel MediaMan
MediaMan is an elegant and powerful media management package for Laravel apps with a painless uploader, virtual collections, automatic conversions and responsive images, and per-model channel associations.
The API is fluent and UI-agnostic — you stay in control of how things look and behave. Equally, at home in a web app or an API server.
Quick example
Core concepts
- Uploader — fluent entry point. Uploads exist independently of any model.
- Media — any uploaded file, persisted as its own record. Validate types/sizes in your form requests.
- Collections — a virtual group of media; many-to-many with Media. Great for asset libraries.
- Channels — per-model tags (
avatar,gallery, …) stored in the polymorphicmediaman_mediablespivot. They also drive conversions. - Conversions — transformations registered globally (resize, watermark, format change) and run when media is attached to a channel.
- Responsive Images — multi-size, multi-format variants (AVIF/HEIC/WebP/JPG/PNG) with ready-made
<picture>/srcsetHTML.
Documentation
| Installation | Requirements, composer, publishing assets, upgrade paths |
| Configuration | Disk, queue, image driver, validation, security, MediaResolver, per-variant disk, responsive images, placeholder |
| Media | The Media entity: retrieve, update, delete, HTTP responses, mail, copy/attachTo |
| Collections | MediaCollection: CRUD, validation, auto-prune |
| Models & Channels | HasMedia trait: attach, sync, retrieve, order; channel fallbacks, conversions, validation rules |
| Conversions | Global registration, per-channel execution, per-conversion disk, format detection, failure isolation |
| Responsive images | Generation, per-format quality, HEIC/AVIF/WebP support, <picture> / srcset, width calculators |
| Uploads | MediaUploader: source, fromRequest, fromDisk, fromBase64, fromUrl, fromStream, fromString |
| Security | SVG sanitizer, disallowed extensions, file-size bounds, SSRF guard, orphan cleanup |
| Events | The six package events |
| Artisan commands | Doctor health check, publish assets, orphan cleanup, conversion/responsive generation and stats |
| Recipes | PDF/video thumbnails, image optimization, ZIP downloads, multi-file uploads, partial attach |
| API reference | Public surface by class/trait |
Release history: UPGRADING.md.
Requirements
| Laravel | Package | PHP |
|---|---|---|
| v12–v13 | 2.x–3.x | 8.3+ |
Quick install
See Installation for the full setup, including the upgrade path for existing installations.
Contribution and license
Found a bug? Open an issue. Feature requests & PRs are welcome.
The MIT License (MIT). Please read the License File for more information.
All versions of laravel-mediaman with dependencies
illuminate/support Version ^12.0|^13.0
illuminate/database Version ^12.0|^13.0
illuminate/validation Version ^12.0|^13.0
intervention/image Version ^4.0
symfony/uid Version ^7.2|^8.0
ext-fileinfo Version *