ezip EZip - for zip archives

  1. Documentation
  2. Change Log

This extension is for working with zip. Based on comments to http://www.php.net/manual/en/function.zip-open.php

Documentation

Requirements
  • Yii 1.0 or above
Installation
  • Extract the release file under protected/extensions/zip
Usage

Introduce EZip to Yii. Add definition to CWebApplication config file (main.php)

'components'=>array(
    ...
    'zip'=>array(
        'class'=>'application.extensions.zip.EZip',
    ),
    ...
),

Now you can access EZip methods as follows:

$zip = Yii::app()->zip;

$zip->makeZip('./','./toto.zip'); // make an ZIP archive
var_export($zip->infosZip('./toto.zip'), false); // get infos of this ZIP archive (without files content)
var_export($zip->infosZip('./toto.zip')); // get infos of this ZIP archive (with files content)
$zip->extractZip('./toto.zip', './1/'); // 

Change Log

May 31, 2010
  • Initial release.
9 0
14 followers
2 235 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Others
Tags:
Developed by: tigo
Created on: Jun 1, 2010
Last updated: 13 years ago

Downloads

show all