thadafinser/package-info

Composer plugin that provides efficient querying for installed package versions (no runtime IO)

Installs: 314 792

Dependents: 1

Suggesters: 0

Security: 0

Stars: 7

Watchers: 3

Forks: 1

Open Issues: 2

Type:composer-plugin

v1.0.0 2016-08-09 11:14 UTC

This package is not auto-updated.

Last update: 2024-11-09 20:12:23 UTC


README

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