thadafinser / package-info
Composer plugin that provides efficient querying for installed package versions (no runtime IO)
Package info
github.com/ThaDafinser/PackageInfo
Type:composer-plugin
pkg:composer/thadafinser/package-info
v1.0.0
2016-08-09 11:14 UTC
Requires
- php: ~5.6|~7.0
- composer-plugin-api: ^1.0
Requires (Dev)
- composer/composer: ^1.2.0
- phpunit/phpunit: ^5.4.7
This package is not auto-updated.
Last update: 2026-03-01 04:04:04 UTC
README
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(); // ...