2017 © Pedro Peláez
 

library laraimage

Easily utilize the glide image package in laravel

image

ireisaac/laraimage

Easily utilize the glide image package in laravel

  • Friday, April 1, 2016
  • by IreIsaac
  • Repository
  • 1 Watchers
  • 0 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Laraimage

I am a fan of the php leagues Glide Image package and use it in most of my projects. This package will hopefully save someone else some time. Let me know if you handle integrating Glide into laravel differently., (*1)

Install

Via Composer, (*2)

``` bash composer require ireisaac/laraimage php artisan vendor:publish, (*3)

Register service provider in config/app.php,  at the end of the long providers array I'd check around line 155-160
``` php
    'providers' => [
        ...
        IreIsaac\LaraImage\ImageServiceProvider::class,
    ]

If you want to have access to an ever so handy facade register it in config/app.php ``` php 'Image' => \IreIsaac\LaraImage\ImageFacade::class,, (*4)

If you would like to use an artisan command to clear cached images generated by the application use the included command.
in the file app/Console/Kernel.php add
``` php
    protected $commands = [
        ...
        IreIsaac\LaraImage\Commands\ClearImageCache::class,
    ];

To render a default image when a requested image does not exists, place an image named "ImageNotFound" in storage/app/images/default/, now you can add the following snippet to App\Exceptions\Handler@render and voila. ``` php if($e instanceof \League\Glide\Filesystem\FileNotFoundException) {, (*5)

    return Image::outputImage(config('images.placeholder'), $request->all());
}

```, (*6)

Usage

The Versions

01/04 2016

dev-master

9999999-dev https://github.com/ireisaac/laravel-glide

Easily utilize the glide image package in laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Isaac Enderline

ireisaac laravel-glide

03/02 2016

0.1.1

0.1.1.0 https://github.com/ireisaac/laravel-glide

Easily utilize the glide image package in laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Isaac Enderline

ireisaac laravel-glide

03/02 2016

0.1.0

0.1.0.0 https://github.com/ireisaac/laravel-glide

Easily utilize the glide image package in laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Isaac Enderline

ireisaac laravel-glide