Download the PHP package melonsmasher/laravel-glide without Composer
On this page you can find all versions of the php package melonsmasher/laravel-glide. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download melonsmasher/laravel-glide
More information about melonsmasher/laravel-glide
Files in melonsmasher/laravel-glide
Package laravel-glide
Short Description league/glide wrapper for Laravel 5.1+
License MIT
Homepage https://github.com/AXN-Informatique/laravel-glide
Informations about the package laravel-glide
Laravel Glide
This package provides a Service Provider that allows you to very easily integrate Glide into a Laravel project. Moreover, multiple servers can be configured.
Glide is a easy on-demand image manipulation library written in PHP. It's part of the League of Extraordinary Packages.
Using this package you'll be able to generate image manipulations on the fly and generate URL's to those images. These URL's will be signed so only you will be able to specify which manipulations should be generated. Every manipulation will be cached.
Installation
Install through composer:
In Laravel 5.5 the service provider will automatically get registered.
In older versions of the framework just add the service provider
to the array of providers in config/app.php
:
In Laravel 5.5 the facade will automatically get registered.
In older versions of the framework just add the facade
to the array of aliases in config/app.php
:
Publish the config file of the package using artisan:
Modify the environment file by adding the following lines:
Obviously you have to adjust the values according to your environment.
The driver can be "gd" or "imagick".
A 128 character (or larger) signing key is recommended. To help you do this, you can run the following command:
Usage
Create a route for each server you have configured:
Create corresponding controllers/actions:
Add image to your views: