davidhirtz / yii2-media-tinify
Yii2 Media Management Tinify extension
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
This package is auto-updated.
Last update: 2024-11-12 15:13:07 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', ];