phar pecl.php.net allows running of complete applications out of .phar files (like Java .jar files) 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 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 avaiable then SHA-256 and SHA-512 signatures are supported as well. Greg Beaver cellog cellog@php.net yes Marcus Boerger helly helly@php.net yes 2007-12-20 1.3.0 1.1.0 stable stable PHP License Major feature functionality release * include/fopen with include_path all work unmodified within a phar * paths with . and .. work (phar://blah.phar/a/../b.php => phar://blah.phar/b.php) * implement Phar::copy(string $from, string $to) [Greg] * implement Phar::buildFromIterator(Iterator $it[, string $base_directory]) [Greg] * add mapping of include/require from within a phar to location within phar [Greg] solves the include_path issue without code munging * add Phar::delete() [Greg] 5.2.0 1.4.3 bz2 pecl.php.net bz2 hash pecl.php.net hash spl zlib phar 1.3.0 1.1.0 stable stable 2007-12-20 PHP License Major feature functionality release * include/fopen with include_path all work unmodified within a phar * paths with . and .. work (phar://blah.phar/a/../b.php => phar://blah.phar/b.php) * implement Phar::copy(string $from, string $to) [Greg] * implement Phar::buildFromIterator(Iterator $it[, string $base_directory]) [Greg] * add mapping of include/require from within a phar to location within phar [Greg] solves the include_path issue without code munging * add Phar::delete() [Greg] 1.2.1 1.1.0 stable stable 2007-08-24 PHP License * add Phar::setAlias() [Greg] * fix too many open file handles issue [Greg] * fix rename [Greg] * add Phar::getAlias() [Marcus] * Made -a optional in pack subcommand of phar.phar [Marcus] * Fix issue with apache module and extracted archives [Marcus] * Send all error messages to stderr in phar.phar [Marcus] * Added new subcommands add and delete to phar.phar [Marcus] * Made Phar::loadPhar() and Phar::mapPhar() ignore extracted archives [Marcus] * Fix issue with compressed entries and uncompressing entries [Marcus] * Verify stubs before writing [Marcus] * Always use longest stub end to avoid issues with length field [Marcus] 1.2.0 1.1.0 stable stable 2007-05-18 PHP License * add PharFileInfo::hasMetadata(), PharFileInfo::delMetadata() [Marcus] * add Phar::hasMetadata(), Phar::delMetadata() [Marcus] * fix Phar::CanWrite() [Marcus] * add preliminary phar command (phar.php) [Marcus] * add phar command (phar.phar) [Marcus] * list all available compression methods using Phar::getSupportedCompression() [Marcus] * remove RINIT [Marcus] 1.1.0 1.1.0 stable stable 2007-04-12 PHP License * implement ability connect a phar file 'phar://whatever' to a directory. That way all access to that phar archive are directed to the extracted directory. This allows to have the installed files and the archieve keep the same includes. [Marcus] * implement SHA-2 (256, 512) support [Marcus] * implement setSignatureAlgorithm() and Phar::MD5 Phar::SHA1 Phar::SHA256 Phar::SHA512 Phar::PGP to choose the kind of signature to use (PGP falls back to SHA1) [Greg] 1.0.1 1.0.1 stable stable 2007-03-28 PHP License * Fix return value of unlink() and rename() when used for phar archievs. [Marcus] 1.0.0 1.0.0 stable stable 2007-03-26 PHP License *BACKWARDS COMPATIBILITY BREAK* Rename Phar->begin/isFlushingToPhar/commit to startBuffering/isBuffering/stopBuffering Note that isBuffering() returns the opposite value to isFlushingToPhar()