t3nma c527ad0803 [COMPOSER] Add new php-ffmpeg package | 4 år sedan | |
---|---|---|
.. | ||
examples | 4 år sedan | |
src | 4 år sedan | |
tests | 4 år sedan | |
.gitignore | 4 år sedan | |
.php_cs | 4 år sedan | |
.travis.yml | 4 år sedan | |
LICENSE | 4 år sedan | |
README.md | 4 år sedan | |
build.xml | 4 år sedan | |
composer.json | 4 år sedan | |
composer.lock | 4 år sedan | |
phive.xml | 4 år sedan | |
phpunit.xml | 4 å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);