2017 © Pedro Peláez
 

library smushit

image

davgothic/smushit

  • Saturday, March 31, 2018
  • by davgothic
  • Repository
  • 2 Watchers
  • 23 Stars
  • 548 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 12 Forks
  • 0 Open issues
  • 8 Versions
  • 4 % Grown

The README.md

SmushIt

Version Build Status Downloads License, (*1)

SmushIt is a PHP client for the popular Yahoo! image compression web service Smush.it, (*2)

Basic Usage

use DavGothic\SmushIt\Client;
use DavGothic\SmushIt\SmushIt;

include __DIR__ . '/vendor/autoload.php';

$client = new Client\Curl();
$smushit = new SmushIt($client);

// Compress a local/remote image and return the result object.
$result = $smushit->compress('some/path/to/an/image.png');
print_r($result);

// stdClass Object
// (
//     [src] => http://static0.resmush.it/output/1262dc777d8b239cfdf5f528a4032f02/source.png
//     [dest] => http://static1.resmush.it/output/a9ba82e7ba18e9482e085fadb126edad/output.png
//     [src_size] => 455200
//     [dest_size] => 158075
//     [percent] => 65
//     [format] => png
//     [expires] => Sun, 19 Mar 2017 18:00:33 +0100
//     [generator] => reSmush.it rev.1.4.22.20170224
// )

Installation

To install the most recent version via composer, run the following command:, (*3)

composer require davgothic/smushit

Requirements

  • PHP 5.5.0+
  • PHP JSON extension
  • PHP cURL extension (This requirement can be ignored if using any client other than the provided cURL client)

The Versions

31/03 2018

v1.3

1.3.0.0

  Sources   Download

31/03 2018

v1.0

1.0.0.0

  Sources   Download

31/03 2018

v1.1

1.1.0.0

  Sources   Download

31/03 2018

v1.2

1.2.0.0

  Sources   Download

10/02 2018

dev-master

9999999-dev https://github.com/davgothic/smushit

SmushIt is a PHP client for the popular Yahoo! image compression web service Smush.it

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

by David Hancock

smushit image-optimization

10/02 2018

v3.0.0

3.0.0.0 https://github.com/davgothic/smushit

SmushIt is a PHP client for the popular Yahoo! image compression web service Smush.it

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

by David Hancock

smushit image-optimization

30/01 2018

v2.0.1

2.0.1.0 https://github.com/davgothic/smushit

SmushIt is a PHP client for the popular Yahoo! image compression web service Smush.it

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

by David Hancock

smushit image-optimization

19/03 2017

v2.0.0

2.0.0.0 https://github.com/davgothic/smushit

SmushIt is a PHP client for the popular Yahoo! image compression web service Smush.it

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

by David Hancock

smushit image-optimization