2017 © Pedro Peláez
 

library laravel-image-purify

Laravel wrapper for https://github.com/despark/image-purify

image

despark/laravel-image-purify

Laravel wrapper for https://github.com/despark/image-purify

  • Thursday, April 26, 2018
  • by lsimeonov
  • Repository
  • 6 Watchers
  • 1 Stars
  • 1,099 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 17 % Grown

The README.md

About

This package is a laravel wrapper for despark/image-purify, (*1)

Installation

Get it from composer, (*2)

composer require despark/laravel-image-purify

With Laravel 5.5 or newer, the package will be discovered automatically. If you're using an older version of Laravel, add the following to your config/app.php file:, (*3)

$providers = [
    ...
    Despark\Laravel\ImagePurify\ImagePurifyServiceProvider::class,
]

If you want an instance of the purifier you can dependency inject Despark\ImagePurify\Interfaces\ImagePurifierInterface, (*4)

If instead you want to register a facade add this to you config/app.php, (*5)

$aliases = [
    ...
    'ImagePurify' => \Despark\Laravel\ImagePurify\Facades\ImagePurify::class
]

If you need custom options you can publish the config via, (*6)

php artisan vendor:publish --provider "Despark\Laravel\ImagePurify\ImagePurifyServiceProvider" --tag config

Example Usage


use Despark\ImagePurify\Interfaces\ImagePurifierInterface; class HomeController extends Controller{ public function optimize(ImagePurifierInterface $purifier){ $purifier->purify('path/to/file'); } }

For additional options and usage see despark/image-purify documentation., (*7)

The Versions

26/04 2018

dev-master

9999999-dev

Laravel wrapper for https://github.com/despark/image-purify

  Sources   Download

MIT

The Requires

 

laravel image optimization compression optipng jpegoptim mozjpeg image optimizer

26/04 2018

v0.2

0.2.0.0

Laravel wrapper for https://github.com/despark/image-purify

  Sources   Download

MIT

The Requires

 

laravel image optimization compression optipng jpegoptim mozjpeg image optimizer

30/05 2017

v0.1.1

0.1.1.0

Laravel wrapper for https://github.com/despark/image-purify

  Sources   Download

MIT

The Requires

 

laravel image optimization compression optipng jpegoptim mozjpeg image optimizer