Download the PHP package ampedweb/laravel-glide-in-a-box without Composer
On this page you can find all versions of the php package ampedweb/laravel-glide-in-a-box. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ampedweb/laravel-glide-in-a-box
More information about ampedweb/laravel-glide-in-a-box
Files in ampedweb/laravel-glide-in-a-box
Package laravel-glide-in-a-box
Short Description Out of the box solution for Glide PHP for Laravel
License MIT
Informations about the package laravel-glide-in-a-box
Laravel Glide In a Box ============
Out of the box solution for Glide PHP for Laravel providing a fluent interface for the Glide API.
Full Docs & Examples are here: https://ampedweb.github.io/laravel-glide-in-a-box/
If you would like to use JUST the Fluent URL Builder in your project you can find that here: https://github.com/ampedweb/glide-url-helper. Docs are currently a work in progress there...!
Requirements
- PHP >= 7.3 with the following extensions:
- Exif
- GD or ImageMagick
- league/glide-laravel": "^1.6",
Features
- Automatically signed urls when using the
glide_url()
helper function. - A fluent interface for all glide image api see here: https://glide.thephpleague.com
Installation ============
Publish the config file:
Basic Usage ============
The base url "out of the box" for all glide image url requests is "/img/". You can adjust this in the glideinabox.php config file once you have published it.
Using the glide_url()
helper function should make building your image urls simple.
An example using a preset as a base and then making a few alterations using the fluent methods:
There are also predefined constants if you prefer using those rather than strings, e.g:
You can also build a completely custom image with no preset. Below is a 200x100 px cropped webp image at 50% quality:
Always remember to call the ->url()
method when you are done configuring your image.
Extension
============
If you would like to use your own image controller but still use the base functionality from the package then you will need to extend:
Running Tests:
All versions of laravel-glide-in-a-box with dependencies
league/glide-symfony Version ^2.0
php Version ^7.3|~8