Skip to content

kazimolmez/compressor.io-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.