PEAR  
Search package by name
 

Package Management
Package Management

 

Package Search
Package Search

 

Channel Management
Channel Management

 

Configuration
Configuration

 
Warning: This package management website is not protected with a password, this is a MAJOR security risk. Please read the README.
Package phar
Installed - no -
Latest 2.0.0
License PHP License
Summary allows running of complete applications out of .phar files (like Java .jar files)
Description This is the extension version of PEAR's PHP_Archive package. Support for
zlib, bz2 and crc32 is achieved without any dependency other than the external
zlib or bz2 extension.

.phar files can be read using the phar stream, or with the Phar class. If the SPL extension
is available, a Phar object can be used as an array to iterate over a phar's contents
or to read files directly from the phar.

Phar supports tar and zip file formats as well as the native phar file format, and can also be
used to create data-only tar and zip archives with the PharData class, even if
write access is disabled by the phar.readonly ini variable.

Executable phar archives can be created using the streams API or with the Phar class, if
the phar.readonly ini variable is set to false.

Full support for MD5 and SHA1 signatures is possible. Signatures can be required
if the ini variable phar.require_hash is set to true. When PECL extension hash is
available then SHA-256 and SHA-512 signatures are supported as well.

Phar is APC-compatible, the latest APC will cache files within a phar archive, resulting in
a 6x speedup measured running phpMyAdmin as a phar archive.
Dependencies
PHP Version: 5.2.1 or newer
PEAR Package: pear.php.net/PEAR 1.4.3 or newer
PEAR Package: pecl.php.net/bz2
PEAR Package: pecl.php.net/hash
PHP Extension: spl
PHP Extension: zlib
Options
install Install package
More extra info Extended Package Information