CodeCanyon

compressIt - compress what you want

News

09/15 : New version available : the script is now packed with a simple GUI to control the API . I’ll upload a live demo soon.

About compressIt

compressIt is a powerful tool that helps you to compress any folder, recursively or not, according to a pattern (eg. .jpg), or not, and download it in one step.

You can easilly copress what you want in your website, with a comprehensive API

Examples

You customer need to download a picture folder in his website :

Create a new PHP file in his website, paste this code in it then open the link in your browser : the compressed folder will pop out!

 
include 'lib/compressit.php';
$compressIt = new compressIt();
// You can also name your compressed file :
// $compressIt = new compressIt('zipFileName'); // This will also keep the archive and never overwrite it.
// If you need a dynamic named zip file, then
// $compressIt = new compressIt('zipFileName',compressIt::OVERWRITE);
$compressIt->addFolder('path/to/pictures');
$compressIt->download();

You need to download all *.txt files in your website but they are scattered in lot of folders :

Ok, once you tried to do it manually you buy compressIt and paste this code :

include 'lib/compressit.php';
$compressIt = new compressIt();
$compressIT->addPattern('.txt'); // this will match all .txt files
$compressIt->addFolder('/root/of/your/website');
echo '<a href="'.$compressIt->getDownloadLink().'">All *.txt files in my website.</a>';

Here we are! You got your files compressed

Have a problem ?

If you have any problem with this script, feel free to contact me.

This package is sold with some examples

by
by
by
by
by