PHP Classes

PHP Zip Multipart Compress: Create and merge Zip archives split in parts

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-06-15 (9 months ago) RSS 2.0 feedNot enough user ratingsTotal: 597 All time: 5,220 This week: 55Up
Version License PHP version Categories
multipart-compress 1.0.10GNU General Publi...5PHP 5, Files and Folders, Compression
Description 

Author

This class can create and merge Zip archives split in parts.

It can create a ZIP archives adding files to them and split the resulting archive in multiple parts if they exceed a given size.

The class can also merge previously split ZIP archives, so it can extract the compressed files.

Picture of Everton da Rosa
  Performance   Level  
Innovation award
Innovation award
Nominee: 3x

 

Recommendations

Convert the folder to ZIP
convert the folder to ".zip" format in php

Example

<?php

/*
 * Copyright (C) 2014 Everton
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

include 'MultipartCompress.php';
$i = 'c:/abase/Gespam.db';
$o = 'c:/abase/Gespam.zip';
$s = 100 * 1024 * 1024;//10MB
echo $zip = MultipartCompress::zip($i, $o, $s);
$p = $zip;
$d = 'c:/abase/';
echo
MultipartCompress::unzip($o, $d, $p);


Details

MultipartCompress

A PHP class for compress and split files/merge and decompress files.


  Files folder image Files (27)  
File Role Description
Files folder imagedoc (9 files, 1 directory)
Files folder imagenbproject (1 directory)
Plain text file MultipartCompress.php Class Class source
Accessible without login Plain text file README.md Data Documentation
Accessible without login Plain text file sample.php Example Example script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:597
This week:0
All time:5,220
This week:55Up