Skip to content

ThaDafinser/PackageInfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PackageInfo

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();
// ...