Media Library
A comprehensive media-management package for Laravel with image processing, folder organization, tagging and modern format conversion. Media Library adds uploads, thumbnails, WebP/AVIF, a media modal and permission-based access control.
v1.7.0
MIT License
★ 0
composer require artisanpack-ui/media-library
$ composer require artisanpack-ui/media-library
✓ Installed
$media = apUploadMedia($file, ['title' => 'My Image']);
$url = apGetMediaUrl($media->id, 'thumbnail');
What it does
Media management, done right
Upload, organize, tag and serve images and video — with automatic thumbnails, modern formats and a drag-and-drop picker.
Folder organization
Organize media into nested, hierarchical folders.
Tag management
Tag media items for fast categorization and filtering.
Image processing
Automatic thumbnail generation in multiple sizes.
Modern formats
Automatic conversion to WebP and AVIF.
Drag & drop upload
A modern upload interface with progress tracking.
Media modal & access
Single/multi-select modal with permission-based access control.
Get started
Install and upload your first file
Helpers like apUploadMedia() and apGetMediaUrl() cover the common paths.
Install
composer require artisanpack-ui/media-library
Requirements
What you need
| Requirement | Detail |
|---|---|
| PHP | 8.2+ (8.3+ on Laravel 13) |
| Laravel | 12.0 or 13.0 |
| Imaging | Intervention Image 3.0 (FFmpeg optional) |
| Install artisanpack-ui/ai to add vision AI helpers for alt text, tags and descriptions. | |
Manage media with Media Library
Add uploads, organization and modern image formats to your Laravel app in one command. Free and open source under the MIT license.
