Stars: 232
Forks: 50
Pull Requests: 14
Issues: 20
Watchers: 18
Last Updated: 2023-03-02 15:15:25
PHP client for the Tinify API.
License: MIT License
Languages: PHP, Shell
PHP client for the Tinify API, used for TinyPNG and TinyJPG. Tinify compresses your images intelligently. Read more at http://tinify.com.
Go to the documentation for the PHP client.
Install the API client with Composer. Add this to your composer.json
:
{
"require": {
"tinify/tinify": "*"
}
}
Then install with:
composer install
Use autoloading to make the client available in PHP:
require_once("vendor/autoload.php");
Tinify\setKey("YOUR_API_KEY");
Tinify\fromFile("unoptimized.png")->toFile("optimized.png");
composer install
vendor/bin/phpunit
composer install
TINIFY_KEY=$YOUR_API_KEY vendor/bin/phpunit --no-configuration test/integration.php
This software is licensed under the MIT License. View the license.