The Phar class
The Phar class provides a high-level interface to accessing and creating phar archives.
Intro
The Phar class provides a high-level interface to accessing and creating phar archives.
Class synopsis
Changelog
| Version | Description |
|---|---|
| 8.4.0 | Added support for the Unix timestamp extension for Zip-based archives. |
| 8.0.0 | Meta-data is no longer deserialized upon opening the archive, but is deferred until Phar::getMetadata is called. |
Notes
Prior to PHP 8.0.0, the meta-data was deserialized upon opening the archive. This could lead to security vulnerabilities. Starting with PHP 8.0.0, meta-data is only deserialized when calling Phar::getMetadata, which has options to restrict deserialization for security reasons.
Phar