PHP code example of lootils / archiver
1. Go to this page and download the library: Download lootils/archiver library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lootils / archiver example snippets
$archive = \Lootils\Archiver\ZipArchive('myarchive.zip');
$archive->add('myfile.png');
$archive = \Lootils\Archiver\TarArchive('myarchive.tar');
$archive->extract('destination');
$archive = \Lootils\Archiver\PharArchive('myarchive.phar');
$files = $archive->contents();
foreach ($files as $filename => $data) {
echo $filename . ' ';
}
bash
curl -s http://getcomposer.org/installer | php
php composer.phar install