peresmishnyk / laravel-glide
Glide image transform for laravel
Requires
- backpack/crud: ^4.1.0
- illuminate/support: ~7|~8
Requires (Dev)
- orchestra/testbench: ~5|~6
- phpunit/phpunit: ~9.0
This package is auto-updated.
Last update: 2024-11-18 20:55:43 UTC
README
// TODO: customize this description and delete this line
This package is wrapper for thephpleague/glide-laravel.
Glide is a wonderfully easy on-demand image manipulation library written in PHP. Its straightforward API is exposed via HTTP, similar to cloud image processing services like Imgix and Cloudinary. Glide leverages powerful libraries like Intervention Image (for image handling and manipulation) and Flysystem (for file system abstraction).
Screenshots
Installation
Via Composer
composer require peresmishnyk/laravel-glide
Usage
// TODO: explain to your users how to use the functionality this package provides; we've provided an example for a Backpack addon that provides a custom field
The package registers url prefixes /img/... and /glide/...
//your-domain.tld/img/@{disk}/{image_path}?w=200
OR
//your-domain.tld/glide/@{disk}/{image_path}?w=200
something like https://test.site/img/@local/app/galeries/daria.jpg?w=100
where {disk} is any disk from config/filesystems.php
Example filesystems config
'disk' =>[ // For access to files in storage 'local' => [ 'driver' => 'local', 'root' => storage_path('app'), ], // For access to files under vcs 'img' => [ 'driver' => 'local', 'root' => app_path('../public/img'), ], ... ];
Change log
Changes are documented here on Github. Please see the Releases tab.
Testing
composer test
Contributing
Please see contributing.md for a todolist and howtos.
Security
If you discover any security related issues, please email michkire@gmail.com instead of using the issue tracker.
Credits
License
This project was released under MIT, so you can install it on top of any Backpack & Laravel project. Please see the license file for more information.
However, please note that you do need Backpack installed, so you need to also abide by its YUMMY License. That means in production you'll need a Backpack license code. You can get a free one for non-commercial use (or a paid one for commercial use) on backpackforlaravel.com.