2017 © Pedro Peláez
 

library zip

ZIP File support for the XP Framework

image

xp-framework/zip

ZIP File support for the XP Framework

  • Sunday, September 24, 2017
  • by thekid
  • Repository
  • 2 Watchers
  • 0 Stars
  • 28,422 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 10 Versions
  • 7 % Grown

The README.md

ZIP File support

Build status on GitHub XP Framework Module BSD Licence Requires PHP 7.0+ Supports PHP 8.0+ Latest Stable Version, (*1)

Usage (creating a zip file)

use io\archive\zip\{ZipFile, ZipDirEntry, ZipFileEntry};
use io\File;

$z= ZipFile::create(new File('dist.zip'));

// Add a directory
$dir= $z->add(new ZipDirEntry('META-INF'));

// Add a file
$file= $z->add(new ZipFileEntry($dir, 'version.txt'));
$file->out()->write($contents);

// Close
$z->close();

Usage (reading a zip file)

use io\archive\zip\ZipFile;
use io\streams\Streams;
use io\File;

$z= ZipFile::open(new File('dist.zip'));
foreach ($z->entries() as $entry) {
  if ($entry->isDirectory()) {
    // Create dir
  } else {
    // Extract
    Streams::readAll($entry->in());
  }
}

The Versions

24/09 2017

dev-master

9999999-dev http://xp-framework.net/

ZIP File support for the XP Framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

module xp

24/09 2017

v8.0.0

8.0.0.0 http://xp-framework.net/

ZIP File support for the XP Framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

module xp

29/08 2016

v7.1.0

7.1.0.0 http://xp-framework.net/

ZIP File support for the XP Framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

module xp

22/02 2016

v7.0.0

7.0.0.0 http://xp-framework.net/

ZIP File support for the XP Framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

module xp

24/01 2016

v6.2.1

6.2.1.0 http://xp-framework.net/

ZIP File support for the XP Framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

module xp

20/12 2015

v6.2.0

6.2.0.0 http://xp-framework.net/

ZIP File support for the XP Framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

module xp

26/09 2015

v6.1.0

6.1.0.0 http://xp-framework.net/

ZIP File support for the XP Framework

  Sources   Download

BSD-3-Clause

The Requires

 

module xp

12/07 2015

v6.0.2

6.0.2.0 http://xp-framework.net/

ZIP File support for the XP Framework

  Sources   Download

BSD-3-Clause

The Requires

 

module xp

12/02 2015

v6.0.1

6.0.1.0 http://xp-framework.net/

ZIP File support for the XP Framework

  Sources   Download

BSD-3-Clause

The Requires

 

module xp

10/01 2015

v6.0.0

6.0.0.0 http://xp-framework.net/

ZIP File support for the XP Framework

  Sources   Download

BSD-3-Clause

The Requires

 

module xp