PHP client for the TinyPNG API, Read more at official TinyPNG documentation.
To generate docs use MKDocs
composer require robopuff/tinypng
$tinyPng = new \TinyPng\TinyPng(new \TinyPng\Client\GuzzleClient('your_api_key'));
$tinyPng
->optimize(new \TinyPng\Input\Filesystem('unoptimized_image.png'))
->store(new \TinyPng\Output\Storage\Filesystem('optimized_image.png'));
composer test-suite
TINYPNG_KEY=$YOUR_API_KEY composer test-integration
This software is licensed under the BSD-3-Clause License. View the license.