Skip to content
Component for reading phar.io manifest information from a PHP Archive (PHAR)
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
src Add missing type declaration Mar 5, 2017
tests fix compatibility with phpunit 6 Apr 7, 2017
.gitignore use phar-io/version to 2.0.1 Jul 8, 2018
.php_cs Add php-cs-fixer configuration Nov 25, 2016
.travis.yml Add travis Mar 3, 2017
LICENSE Initial work on value objects Nov 25, 2016
README.md Add travis button Mar 3, 2017
build.xml Add trust gpg keys to build Mar 3, 2017
composer.json use phar-io/version to 2.0.1 Jul 8, 2018
composer.lock
phive.xml
phpunit.xml

README.md

Manifest

Component for reading phar.io manifest information from a PHP Archive (PHAR).

Build Status Scrutinizer Code Quality SensioLabsInsight

Installation

You can add this library as a local, per-project dependency to your project using Composer:

composer require phar-io/manifest

If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:

composer require --dev phar-io/manifest

Usage

use PharIo\Manifest\ManifestLoader;
use PharIo\Manifest\ManifestSerializer;

$manifest = ManifestLoader::fromFile('manifest.xml');

var_dump($manifest);

echo (new ManifestSerializer)->serializeToString($manifest);
You can’t perform that action at this time.