PHP Command line tool for creating zip archives.
PHP 5.6 or above
- Clone or download this repository
- Download dependency
composer intall
- Run
php init.php -i e:/b
see options below
-i, --input <n>
Path to input directory.-o, --output <n>
Path to output directory.-s, --size <i>
Max archive size in bytes.-e, --extension <s>
Archive only files with given file extension.
For example: php init.php -e jpg -s 100000000 -i e:/b -o e:/b/c
This command will archive only jpg files which are located in e:\b directory. Max size of one archive is proximately 100 MB. All zip archive will be created in e:\b\c directory.
See the LICENSE file for license rights and limitations (MIT).