2017 © Pedro Peláez
 

library tinify

PHP client for the Tinify API. Tinify compresses your images intelligently. Read more at https://tinify.com.

image

tinify/tinify

PHP client for the Tinify API. Tinify compresses your images intelligently. Read more at https://tinify.com.

  • Thursday, July 26, 2018
  • by tinify
  • Repository
  • 18 Watchers
  • 126 Stars
  • 272,292 Installations
  • PHP
  • 18 Dependents
  • 0 Suggesters
  • 29 Forks
  • 5 Open issues
  • 12 Versions
  • 20 % Grown

The README.md

MIT License CI_CD Packagist Version Packagist PHP Version Support, (*1)

Tinify API client for PHP

PHP client for the Tinify API, used for TinyPNG and TinyJPG. Tinify compresses your images intelligently. Read more at http://tinify.com., (*2)

Documentation

Go to the documentation for the PHP client., (*3)

Installation

Install the API client with Composer. Add this to your composer.json:, (*4)

{
  "require": {
    "tinify/tinify": "*"
  }
}

Then install with:, (*5)

composer install

Use autoloading to make the client available in PHP:, (*6)

require_once("vendor/autoload.php");

Usage

Tinify\setKey("YOUR_API_KEY");
Tinify\fromFile("unoptimized.png")->toFile("optimized.png");

Running tests

composer install
vendor/bin/phpunit

Integration tests

composer install
TINIFY_KEY=$YOUR_API_KEY vendor/bin/phpunit --no-configuration test/integration.php

License

This software is licensed under the MIT License. View the license., (*7)

The Versions

26/07 2018

dev-master

9999999-dev https://tinify.com/developers

PHP client for the Tinify API. Tinify compresses your images intelligently. Read more at https://tinify.com.

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *
  • ext-json *
  • lib-curl >=7.20.0

 

The Development Requires

by Rolf Timmermans

api images compress tinypng tinyjpg tinify

19/07 2017

dev-create-key

dev-create-key https://tinify.com/developers

PHP client for the Tinify API. Tinify compresses your images intelligently. Read more at https://tinify.com.

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *
  • ext-json *
  • lib-curl >=7.20.0

 

The Development Requires

by Rolf Timmermans

api images compress tinypng tinyjpg tinify

19/07 2017

1.5.2

1.5.2.0 https://tinify.com/developers

PHP client for the Tinify API. Tinify compresses your images intelligently. Read more at https://tinify.com.

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *
  • ext-json *
  • lib-curl >=7.20.0

 

The Development Requires

by Rolf Timmermans

api images compress tinypng tinyjpg tinify

04/05 2017

1.5.1

1.5.1.0 https://tinify.com/developers

PHP client for the Tinify API. Tinify compresses your images intelligently. Read more at https://tinify.com.

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *
  • ext-json *
  • lib-curl >=7.20.0

 

The Development Requires

by Rolf Timmermans

api images compress tinypng tinyjpg tinify

16/02 2017

1.5.0

1.5.0.0 https://tinify.com/developers

PHP client for the Tinify API. Tinify compresses your images intelligently. Read more at https://tinify.com.

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *
  • ext-json *
  • lib-curl >=7.20.0

 

The Development Requires

by Rolf Timmermans

api images compress tinypng tinyjpg tinify

03/01 2017

1.4.0

1.4.0.0 https://tinify.com/developers

PHP client for the Tinify API. Tinify compresses your images intelligently. Read more at https://tinify.com.

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *
  • ext-json *
  • lib-curl >=7.20.0

 

The Development Requires

by Rolf Timmermans

api images compress tinypng tinyjpg tinify

01/04 2016

1.3.0

1.3.0.0 https://tinify.com/developers

PHP client for the Tinify API. Tinify compresses your images intelligently. Read more at https://tinify.com.

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *
  • ext-json *
  • lib-curl >=7.20.0

 

The Development Requires

by Rolf Timmermans

api images compress tinypng tinyjpg tinify

26/01 2016

1.2.0

1.2.0.0 https://tinify.com/developers

PHP client for the Tinify API. Tinify compresses your images intelligently. Read more at https://tinify.com.

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *
  • ext-json *
  • lib-curl >=7.20.0

 

The Development Requires

by Rolf Timmermans

api images compress tinypng tinyjpg tinify

01/09 2015

1.1.1

1.1.1.0 https://tinify.com/developers

PHP client for the Tinify API. Tinify compresses your images intelligently. Read more at https://tinify.com.

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *
  • ext-json *

 

The Development Requires

by Rolf Timmermans

api images compress tinypng tinyjpg tinify

28/08 2015

1.1.0

1.1.0.0 https://tinify.com/developers

PHP client for the Tinify API. Tinify compresses your images intelligently. Read more at https://tinify.com.

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *
  • ext-json *

 

The Development Requires

by Rolf Timmermans

api images compress tinypng tinyjpg tinify

21/07 2015

0.9.1

0.9.1.0 https://tinify.com/developers

PHP client for the Tinify API. Tinify compresses your images intelligently. Read more at https://tinify.com.

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *
  • ext-json *

 

The Development Requires

by Rolf Timmermans

api images compress tinypng tinyjpg tinify

08/07 2015

0.9.0

0.9.0.0 https://tinify.com/developers

PHP client for the Tinify API. Tinify compresses your images intelligently. Read more at https://tinify.com.

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *
  • ext-json *

 

The Development Requires

by Rolf Timmermans

api images compress tinypng tinyjpg tinify