2017 © Pedro Peláez
 

library glide-for-laravel

A wrapper for League/Glide to easily manipulate images in Laravel 5

image

jancyril/glide-for-laravel

A wrapper for League/Glide to easily manipulate images in Laravel 5

  • Sunday, August 6, 2017
  • by jancyril
  • Repository
  • 1 Watchers
  • 1 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Glide for Laravel

Build Status, (*1)

A wrapper to easily use Glide in Laravel 5., (*2)

Installation

Download via composer:, (*3)

composer require jancyril/glide-for-laravel, (*4)

Add the GlideServiceProvider to your config/app.php inside the providers array:, (*5)

'providers' => [
    JanCyril\Glide\GlideServiceProvider::class,
];

Publish the config file for this package:, (*6)

php artisan vendor:publish --provider="JanCyril\Glide\GlideServiceProvider", (*7)

Modify the values of your config/glide.php file to suit your needs., (*8)

Usage

Inject JanCyril\Glide\Glide in the class that will use it., (*9)

Resizing an image:, (*10)

$this->glide->image($imagePath)
            ->resize(200,200)
            ->save($outputFile);

Adding a watermark to the image:, (*11)

$this->glide->image($imagePath)
            ->addWatermark($watermarkImage)
            ->save($outputFile);

Manipulate image using available parameters from glide:, (*12)

$parameters = [
    'w' => 200,
    'h' => 200,
    'fit' => fill,
];

$this->glide->image($imagePath)
            ->manipulate($parameters)
            ->save($outputFile);

To see all available parameters visit Glide Page., (*13)

Dynamic image manipulation via route:, (*14)

http://localhost/image/sample_image.jpg?w=200, (*15)

You can pass parameters as query string to your URL., (*16)

The image segment in the URL can be changed in your config/glide.php., (*17)

The Versions

06/08 2017

dev-master

9999999-dev https://github.com/jancyril/glide-for-laravel

A wrapper for League/Glide to easily manipulate images in Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jan Cyril Segubience

01/07 2017

dev-php-5.6

dev-php-5.6 https://github.com/jancyril/glide-for-laravel

A wrapper for League/Glide to easily manipulate images in Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jan Cyril Segubience

03/05 2017

v1.0.2

1.0.2.0 https://github.com/jancyril/glide-for-laravel

A wrapper for League/Glide to easily manipulate images in Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jan Cyril Segubience

02/05 2017

v1.0.1

1.0.1.0 https://github.com/jancyril/glide-for-laravel

A wrapper for League/Glide to easily manipulate images in Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jan Cyril Segubience

02/05 2017

v1.0

1.0.0.0 https://github.com/jancyril/glide-for-laravel

A wrapper for League/Glide to easily manipulate images in Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jan Cyril Segubience