Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 893 Bytes

README.md

File metadata and controls

36 lines (22 loc) · 893 Bytes

Compressor IO Helper PHP Class

Usage

use serhatozles\compressorio\CompressorIO;

$files = [];

$compress = new CompressorIO();
$compress->backup = true; // default: true. when it's true, create a directory and files will be copied to there before compressed.

$files[] = '/path/to/source/image/file.jpg';
$compress->compress($files);

// you can compress one file or get file list by a folder and compress.
$files = $compress->findFolder('png|jpg|jpeg|gif');
$compress->compress($files);

Installation

Simply add a dependency on serhatozles/compressor.io-php to your composer.json file if you use Composer to manage the dependencies of your project:

composer require serhatozles/compressor.io-php

You can try on the website.

https://compressor.io.

License

Minify is MIT licensed.