phar-io/manifest
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|---|---|---|---|---|
phar-io/version | 3.2.1 | 18.12 kB | BSD-3-Clause | prod |
The phar-io/manifest package is a PHP Archive (PHAR) reader specifically designed for extracting manifest information from PHAR files. It aids developers in interpreting and manipulating the manifest details that accompany these archives. The package is a key component of the PHP ecosystem, with high-quality ratings from services such as Scrutinizer and SensioLabsInsight, indicating its robustness and reliability.
Utilizing the phar-io/manifest PHP package involves incorporating it as a dependency within your project. This can either be achieved as a standard inclusion, or as a development dependency if the toolkit is solely for testing purposes. This is accomplished using the Composer dependency manager with the following commands:
composer require phar-io/manifest
For a development dependency, use:
composer require --dev phar-io/manifest
Following successful installation, the package can be utilized within your PHP codes. Here's an example of how you can read and serialize a manifest file:
use PharIo\Manifest\ManifestLoader;
use PharIo\Manifest\ManifestSerializer;
$manifest = ManifestLoader::fromFile('manifest.xml');
var_dump($manifest);
echo (new ManifestSerializer)->serializeToString($manifest);
Documentation for the phar-io/manifest package is currently not offered on the GitHub page itself. A good starting point for understanding its use and functionalities would be the example usage provided in the readme file on the GitHub repository. For additional documentation, developers are advised to explore the source code or extensive PHP communities. The absence of formal documentation emphasizes the importance of hands-on practice and community interaction when using the phar-io/manifest package.