Download the PHP package jancyril/glide-for-laravel without Composer
On this page you can find all versions of the php package jancyril/glide-for-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jancyril/glide-for-laravel
More information about jancyril/glide-for-laravel
Files in jancyril/glide-for-laravel
Package glide-for-laravel
Short Description A wrapper for League/Glide to easily manipulate images in Laravel 5
License MIT
Homepage https://github.com/jancyril/glide-for-laravel
Informations about the package glide-for-laravel
Glide for Laravel
A wrapper to easily use Glide in Laravel 5.
Installation
Download via composer:
composer require jancyril/glide-for-laravel
Add the GlideServiceProvider to your config/app.php inside the providers array:
Publish the config file for this package:
php artisan vendor:publish --provider="JanCyril\Glide\GlideServiceProvider"
Modify the values of your config/glide.php file to suit your needs.
Usage
Inject JanCyril\Glide\Glide
in the class that will use it.
Resizing an image:
Adding a watermark to the image:
Manipulate image using available parameters from glide:
To see all available parameters visit Glide Page.
Dynamic image manipulation via route:
http://localhost/image/sample_image.jpg?w=200
You can pass parameters as query string to your URL.
The image segment in the URL can be changed in your config/glide.php.
All versions of glide-for-laravel with dependencies
league/glide Version ^1.0
illuminate/support Version ^5.1
illuminate/filesystem Version ^5.1