Installation

Zippr can be installed using the these methods:

  • Using Composer
  • Cloning From GitHub

Using Composer

Installation using Composer is the easiest way to install Zippr.

Zippr is available at Packagist.

Add the next line to the require part of your composer.json file:

"barry127/zippr": "1.*"

Start or update composer to download Zippr:

$ composer.phar install
# OR
$ composer.phar update

Composer creates an autoload php file that loads all your dependencies using the PSR-0 norm. Make sure you add this file to your script.

Example

<?php
// Include composer autoload
require_once('vendor/autoload.php');

// Not required but convenient: Add Zippr to the global namespace
use Barry127\Zippr\Zippr;

$Zippr = new Zippr('file.zip');
?>

Using GitHub

Download or clone the script from the Zippr GitHub.

Make sure that all Zippr files are in your project directory and scr/Barry127/Zippr/Zippr.php is included or (auto)loaded in your script.

Example

<?php
// Include Zippr
require_once('scr/Barry127/Zippr/Zippr.php');

// Not required but convenient: Add Zippr to the global namespace
use Barry127\Zippr\Zippr;

$Zippr = new Zippr('file.zip');
?>
Fork me on GitHub