PHPackages                             commando1251/archive - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. commando1251/archive

ActivePackage[File &amp; Storage](/categories/file-storage)

commando1251/archive
====================

Simple and smart archive builder

1.0.0(6y ago)02MITPHPPHP ^7.1.3

Since Mar 30Pushed 6y agoCompare

[ Source](https://github.com/commando1251/archive)[ Packagist](https://packagist.org/packages/commando1251/archive)[ Docs](https://github.com/commando1251/archive)[ RSS](/packages/commando1251-archive/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Simple archive builder
======================

[](#simple-archive-builder)

Smart and simple PHP archive builder. You can create an archive, save it to disk or send it to the user. Supports adding files from local disc, URL or string. It allows saving the complex structure as a folder tree. Supports zip and tar archives. To create tar.gz archive please look at the following [example](https://github.com/commando1251/archive/blob/master/examples/tar/CompressArchive.php).

### Requirements

[](#requirements)

PHP &gt;= 7.1.3, Composer
For zip archives installed zlib

### Installing

[](#installing)

```
$ composer require commando1251/archive
```

### Basic Usage

[](#basic-usage)

```
