File: README.md

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

 

Contents

Class file image Download

hydrogen-zipper

Zipper class to work with .zip files

How to use :

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

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

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

For more information send a message to info at phpclasses dot org.