thadafinser / package-info
Composer plugin that provides efficient querying for installed package versions (no runtime IO)
Installs: 314 739
Dependents: 1
Suggesters: 0
Security: 0
Stars: 7
Watchers: 3
Forks: 1
Open Issues: 2
Type:composer-plugin
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: 2024-10-26 20:04:23 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(); // ...