2017 © Pedro Peláez
 

library imagify-laravel

Laravel integration for the imagify.io API

image

renatomiguelsantos/imagify-laravel

Laravel integration for the imagify.io API

  • Wednesday, July 18, 2018
  • by renatomiguelsantos
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

imagify-laravel

Laravel integration for the imagify.io API, (*1)

It is a wrap around the official PHP library from imagify.io https://github.com/wp-media/imagify-php, (*2)

Installation

Require this package with composer., (*3)

composer require renatomiguelsantos/imagify-laravel

Copy the package config to your local config with the publish command:, (*4)

php artisan vendor:publish --provider="Imagify\Laravel\ServiceProvider"

And set an env variable IMAGIFY_APIKEY with your imagify.io api key., (*5)

Usage

use Imagify;

$handle = Imagify::optimize('path_to_image', [
    'level' => 'ultra',
    'resize' => [
        'width' => '1560',
    ],
]);

if (true === $handle->success) {
    $contents = file_get_contents($handle->image);
}

The Versions

18/07 2018

dev-master

9999999-dev

Laravel integration for the imagify.io API

  Sources   Download

MIT

The Requires

 

by Renato Santos

laravel images compression imagify

04/07 2018

1.0.3

1.0.3.0

Laravel integration for the imagify.io API

  Sources   Download

MIT

The Requires

 

by Renato Santos

laravel images compression imagify

04/07 2018

1.0.2

1.0.2.0

Laravel integration for the imagify.io API

  Sources   Download

MIT

The Requires

 

by Renato Santos

laravel images compression imagify

04/07 2018

1.0.1

1.0.1.0

Laravel integration for the imagify.io API

  Sources   Download

MIT

The Requires

 

by Renato Santos

laravel images compression imagify

04/07 2018

1.0.0

1.0.0.0

Laravel integration for the imagify.io API

  Sources   Download

MIT

The Requires

 

by Renato Santos

laravel images compression imagify