Download the PHP package wapmorgan/unified-archive without Composer
On this page you can find all versions of the php package wapmorgan/unified-archive. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wapmorgan/unified-archive
More information about wapmorgan/unified-archive
Files in wapmorgan/unified-archive
Package unified-archive
Short Description UnifiedArchive - an archive manager with unified interface of working with all popular archive formats (zip/7z/rar/gz/bz2/xz/cab/tar/tar.gz/tar.bz2/tar.x/tar.Z/...) for PHP with ability for listing, reading, extracting and creation + built-in console archive manager.
License MIT
Rated 3.00 based on 1 reviews
Informations about the package unified-archive
UnifiedArchive - an archive manager with unified interface for different formats that works on wide variety of system configuration. It supports all basic operations on widespread formats and some format-specific features for most popular ones (zip, rar, 7z, tar).
Main purpose of this library is to create unified interface for popular archive formats, that works in various system configurations via different drivers, when there is no ability to update system configuration, when code delivered to another system configurations, or when you just want to install libraries and work. It's handy when there's need to support archive types regardless of the system configuration.
- Functions & Features
- How it works
- Quick start
- Built-in console archive manager
- Usage
- Drivers & formats
- Full API description
- Changelog
Functions & Features
UnifiedArchive is aimed to provide all operations on popular archive formats (zip, tar, rar, 7z) by all means and at better performance (depends on your OS/PHP configuration). Also, it allows to work with less popular archive types (with lack of functions).
Main functions:
- Open an archive with automatic format detection (more 20 formats).
- List archive content, calculate original size of archive
- Get details (original size, date of modification) of every archived file. Extract or stream archived file content
- Extract all archive content. Append an archive with new files or directories. Remove files from archive
- Create new archives with files/directories on disk and stream from memory
- Fully implemented PclZip-like interface for archives for all formats. Easy transition from old PclZip.
- Bundled with cli utility
Specific functions:
- Read (zip, rar) & set (zip) archive comment
- Open archives encrypted with password (zip, rar, 7z)
- Set passwords (7z, zip) for new archives
- Adjust compression level (zip, gzip, 7zip) for new archives
How it works
UnifiedArchive uses "drivers", which can be one of types:
- PHP Extensions
- Utilities + bridge
- Pure PHP
By default, UA goes top-down to select first available driver for passed archive. So, PHP Extension driver will be used (if available), then Utilities + bridge driver (if available), and then Pure PHP driver.
There is at least one driver in all three types, which handles zip format, so this format can be fully supported in any OS/PHP configuration:
- PHP extensions: zip / phar
- Utility + bridge: SevenZip / AlchemyZippy
- Pure: NelexaZip / SplitbrainPhpArchive
tar format (with compressed variants) supported by:
- PHP extension: phar
- Utility + bridge: SevenZip / AlchemyZippy
- Pure: TarByPear / SplitbrainPhpArchive
So, there is always one driver that supports popular formats, and you should not remember how to work with this concrete driver (zip/phar/SevenZip/AlchemyZippy/NelexaZip/SplitbrainPhpArchive), interface for them is uniform.
Quick start
Installation and configuration
Install library
Install new driver
Usage
- Full usage
- Drivers & formats
- Full API description
- Changelog
Built-in console archive manager
UnifiedArchive is distributed with a unified console program to manipulate archives. It supports all formats and all operations on them that UnifiedArchive does, so it can be used to manipulate archives without other system software. To show help, launch it:
All versions of unified-archive with dependencies
ext-fileinfo Version *