MediaThor is a booster packages which makes it easy to get starting with media interactions throughout your project. Packed with sensible defaults and endless configurability.
You can install the package via composer:
composer require dystcz/mediathor
Run the installer:
php artisan mediathor:install
You can also install manually:
# Publish MediaThor config
php artisan vendor:publish --provider="Dystcz\MediaThor\MediaThorServiceProvider" --tag="migrations"
# Publish Medialibrary config
php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider" --tag="config"
# Publish Medialibrary migrations
php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider" --tag="migrations"
# Publish Filepond config
php artisan vendor:publish --provider="Sopamo\LaravelFilepond\LaravelFilepondServiceProvider"
# Run migrations
php artisan migrate
- Filepond media upload
-
UploadController
-
- Preconfigured Glide for image manipulations and Nuxt image
-
GlideImageController
-
- Medialibrary with sensible defaults including:
- Image conversions
- Responsive images with
srcset
-
MediaResource
for your APIs - Automatic
with
andheight
asMedia
custom properties -
MediaController
Everything is configurable in config/mediathor.php
# Usage
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email jakub@dy.st instead of using the issue tracker.
- Jakub Theimer
- Spatie for the
laravel-medialibrary
package - Sopamo for the
laravel-filepond
package - All Contributors
The MIT License (MIT). Please see License File for more information.