PHP code example of shadesoft / zipper
1. Go to this page and download the library: Download shadesoft/zipper library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
shadesoft / zipper example snippets
\ShadeSoft\Zipper\Zipper::zip('/path/to/directory', '/path/to/zip/file');
\ShadeSoft\Zipper\Zipper::zip('/path/to/directory', '/path/to/zip/file', 'CP852'); // file names in zip file will be converted to East-European