PHP Classes

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

Recommend this page to a friend!
  Info   View files Example   View files View files (26)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-01-09 (2 months ago) RSS 2.0 feedNot enough user ratingsTotal: 590 This week: 1All time: 5,256 This week: 560Up
Version License PHP version Categories
multipart-compress 1.0.9GNU 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  
Name: Everton da Rosa <contact>
Classes: 17 packages by
Country: Brazil Brazil
Age: 42
All time rank: 78856 in Brazil Brazil
Week rank: 106 Up7 in Brazil Brazil Up
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  
File Role Description
Files folder imagedoc (8 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

  Files folder image Files  /  doc  
File Role Description
Files folder imageresources (11 files)
  Accessible without login HTML file 404.html Doc. Documentation
  Accessible without login HTML file class-MultipartCompress.html Doc. Documentation
  Accessible without login HTML file deprecated.html Doc. Documentation
  Accessible without login Plain text file elementlist.js Data Auxiliary data
  Accessible without login HTML file index.html Doc. Documentation
  Accessible without login HTML file source-class-MultipartCompress.html Doc. Documentation
  Accessible without login HTML file todo.html Doc. Documentation
  Accessible without login HTML file tree.html Doc. Documentation

  Files folder image Files  /  doc  /  resources  
File Role Description
  Accessible without login Image file collapsed.png Icon Icon image
  Accessible without login Plain text file combined.js Data Auxiliary data
  Accessible without login Image file footer.png Data Auxiliary data
  Accessible without login Image file inherit.png Icon Icon image
  Accessible without login Image file resize.png Icon Icon image
  Accessible without login Image file sort.png Icon Icon image
  Accessible without login Plain text file style.css Data Auxiliary data
  Accessible without login Image file tree-cleaner.png Icon Icon image
  Accessible without login Image file tree-hasnext.png Icon Icon image
  Accessible without login Image file tree-last.png Data Auxiliary data
  Accessible without login Image file tree-vertical.png Icon Icon image

  Files folder image Files  /  nbproject  
File Role Description
Files folder imageprivate (3 files, 1 directory)

  Files folder image Files  /  nbproject  /  private  
File Role Description
Files folder imageconfigs (1 file)
  Accessible without login Plain text file config.properties Data Auxiliary data
  Accessible without login Plain text file private.properties Data Auxiliary data
  Accessible without login Plain text file private.xml Data Auxiliary data

  Files folder image Files  /  nbproject  /  private  /  configs  
File Role Description
  Accessible without login Plain text file MultipartCompress.properties Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:590
This week:1
All time:5,256
This week:560Up