thadafinser/package-info

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

Maintainers

Package info

github.com/ThaDafinser/PackageInfo

Type:composer-plugin

pkg:composer/thadafinser/package-info

Statistics

Installs: 315 837

Dependents: 1

Suggesters: 0

Stars: 7

Open Issues: 2

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

This package is not auto-updated.

Last update: 2026-03-01 04:04:04 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();
// ...