vipsoft/unzip

Unzip library - a ZipArchive wrapper

1.3 2021-01-21 18:23 UTC

This package is auto-updated.

Last update: 2024-12-22 02:30:13 UTC


README

A wrapper around ZipArchive to extract .zip files.

This is a refactoring of my Piwik_Unzip_ZipArchive class. It now requires php 5.3.6+, uses namespaces, adheres to object calisthenics, and is re-licensed as MIT.

Features

  • Simple to use!

    use VIPSoft\Unzip\Unzip;
    
    $unzipper  = new Unzip();
    $filenames = $unzipper->extract($zipFilePath, $extractToThisDir);
  • Guards against malicious filenames in the archive

Copyright

Copyright (c) 2010-2012 Anthon Pang. See LICENSE for details.

Contributors