Chris@14: # Manifest Chris@14: Chris@14: Component for reading [phar.io](https://phar.io/) manifest information from a [PHP Archive (PHAR)](http://php.net/phar). Chris@14: Chris@14: [![Build Status](https://travis-ci.org/phar-io/manifest.svg?branch=master)](https://travis-ci.org/phar-io/manifest) Chris@14: [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/phar-io/manifest/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/phar-io/manifest/?branch=master) Chris@14: [![SensioLabsInsight](https://insight.sensiolabs.com/projects/d8cc6035-69ad-477d-bd1a-ccc605480fd7/mini.png)](https://insight.sensiolabs.com/projects/d8cc6035-69ad-477d-bd1a-ccc605480fd7) Chris@14: Chris@14: ## Installation Chris@14: Chris@14: You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/): Chris@14: Chris@14: composer require phar-io/manifest Chris@14: Chris@14: 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: Chris@14: Chris@14: composer require --dev phar-io/manifest Chris@14: Chris@14: ## Usage Chris@14: Chris@14: ```php Chris@14: use PharIo\Manifest\ManifestLoader; Chris@14: use PharIo\Manifest\ManifestSerializer; Chris@14: Chris@14: $manifest = ManifestLoader::fromFile('manifest.xml'); Chris@14: Chris@14: var_dump($manifest); Chris@14: Chris@14: echo (new ManifestSerializer)->serializeToString($manifest); Chris@14: ```