Skip to content

vipsoft/Unzip

Repository files navigation

VIPSoft\Unzip

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