davidhirtz/yii2-media-tinify

There is no license information available for the latest version (v1.0.2) of this package.

Yii2 Media Management Tinify extension

v1.0.2 2022-05-12 09:10 UTC

This package is auto-updated.

Last update: 2024-12-12 15:16:53 UTC


README

This extension enables the Tinify API, used for TinyPNG and TinyJPG, to compresses images for the Yii 2 extension yii2-media by David Hirtz.

Read more at https://tinify.com.

Installation

composer require davidhirtz/yii2-media-tinify

Setup

Add your TinyPNG API key to config/params.php or use command line script:

php yii params/create tinifyApiKey "YOUR-TINYPNG-KEY"
<?php
return [
    'tinifyApiKey' => 'YOUR-TINYPNG-KEY',
];