server 52763dedf1 gitignore | 2 år sedan | |
---|---|---|
.. | ||
examples | 2 år sedan | |
src | 2 år sedan | |
tests | 2 år sedan | |
.gitignore | 2 år sedan | |
.php_cs | 2 år sedan | |
.travis.yml | 2 år sedan | |
LICENSE | 2 år sedan | |
README.md | 2 år sedan | |
build.xml | 2 år sedan | |
composer.json | 2 år sedan | |
composer.lock | 2 år sedan | |
phive.xml | 2 år sedan | |
phpunit.xml | 2 år sedan |
Component for reading phar.io manifest information from a PHP Archive (PHAR).
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
use PharIo\Manifest\ManifestLoader;
use PharIo\Manifest\ManifestSerializer;
$manifest = ManifestLoader::fromFile('manifest.xml');
var_dump($manifest);
echo (new ManifestSerializer)->serializeToString($manifest);