PackageInfo

August 9, 2016 ยท View on GitHub

Build Status Code Coverage Scrutinizer Code Quality

Latest Stable Version Latest Unstable Version License Total Downloads

This package was highly inspired from ocramius/package-versions

I needed some methods to read data from the composer.lock file fast...this is the result

$bool = \PackageInfo\Package::isInstalled('vendor/package-name'); // return true/false

// may throw PackageNotInstalledException if the package is not installed
$package = new \PackageInfo\Package('vendor/package-name');
$package->getName();
$package->getDescription();
$package->getVersion();
$package->getType();
$package->getKeywords();
// ...