Inspect an existing PHAR archive's declared dependencies and PHP version requirements programmatically.
Generate a valid XML manifest when building your own PHP tool packaged as a PHAR file.
Validate that a PHAR's manifest correctly records its author and license before publishing.
This is a PHP library for reading and writing manifest files associated with PHP Archives, which are single-file bundles of PHP applications or libraries with a .phar extension. A manifest in this context is an XML file that describes the archive's name, version, license, author information, PHP version requirements, and any other packages bundled inside it. The library lets you load a manifest from an existing XML file and inspect its contents as PHP objects, or build a manifest from scratch in code and serialize it back to XML. The README shows both approaches with code examples and their expected output. This is a developer utility used behind the scenes by PHP tooling, particularly within the phar.io ecosystem, which is a distribution channel for PHP tools packaged as PHAR archives. Most PHP developers would encounter this library as an indirect dependency pulled in by tools like PHPUnit or Composer rather than using it directly. Installation is handled through Composer, the standard PHP package manager. It can be added as a regular dependency or a development-only dependency depending on your needs.
← phar-io on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.