PHP Classes


Recommend this page to a friend!
  Classes of walid laggoune   Hydrogen Zipper   Download  
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Hydrogen Zipper
Compress and extract files from ZIP archives
Author: By
Last change: Update
Date: 3 years ago
Size: 606 bytes


Class file image Download


Zipper class to work with .zip files

How to use :

require "vendor/autoload.php";
use Zipper\Classes\Zip;

$zip = new Zip;
$zip->make(?>add(?onefile.jpg?); // zip one file
$zip->make(?>add([?onefile.jpg?,?two.jpg?]); // zip multi files
$zip->make(?>add(?/file?); // zip only files in folder

$zip->extract(?>to(?/files?); // extract to /files
$zip->extract(?>only([?home.jpg?,?index.jpg?])->to(?/files?); // extract onlye mutli files from to /files