Download the PHP package phine/phar-compact without Composer
On this page you can find all versions of the php package phine/phar-compact. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download phine/phar-compact
More information about phine/phar-compact
Files in phine/phar-compact
Package phar-compact
Short Description Integrates the compact library with the phar library.
License MIT
Homepage https://github.com/phine/lib-phar-compact
Informations about the package phar-compact
Phar Compact
Integrates the compact library with the phar library.
Requirement
- PHP >= 5.3.3
- Phine Compact >= 1.1
- Phine Exception >= 1.0.0
- Phine Observer >= 2.0
- Phine Phar >= 1.0.0
Installation
Via Composer:
$ composer require "phine/phar-compact=~1.0"
Usage
The library provides a single subject observer for lib-phar. This observer can be registered to the following subjects in order to compact file contents as they are being added to the archive:
Builder::ADD_FILE
Builder::ADD_STRING
To create an observer, you will need a new instance of CompactObserver
.
With the observer registered, any time a file is added to the archive via the
addFile()
or addFromString()
methods, the contents of the supported file
types will be automatically compacted before being added to the archive.
Documentation
You can find the API documentation here.
License
This library is available under the MIT license.
All versions of phar-compact with dependencies
phine/compact Version ~1.1
phine/exception Version ~1.0
phine/observer Version ~2.0
phine/path Version ~1.0
phine/phar Version ~1.0