composer-plugin package-info
Composer plugin that provides efficient querying for installed package versions (no runtime IO)
thadafinser/package-info
Composer plugin that provides efficient querying for installed package versions (no runtime IO)
- Tuesday, August 9, 2016
- by ThaDafinser
- Repository
- 1 Watchers
- 5 Stars
- 57,962 Installations
- PHP
- 1 Dependents
- 0 Suggesters
- 0 Forks
- 1 Open issues
- 2 Versions
- 14 % Grown
PackageInfo
, (*1)
, (*2)
This package was highly inspired from ocramius/package-versions, (*3)
I needed some methods to read data from the composer.lock
file fast...this is the result, (*4)
$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();
// ...
dev-master
9999999-dev
Composer plugin that provides efficient querying for installed package versions (no runtime IO)
Sources
Download
MIT
The Requires
-
php ~5.6|~7.0
-
composer-plugin-api ^1.0
The Development Requires
by
ThaDafinser
v1.0.0
1.0.0.0
Composer plugin that provides efficient querying for installed package versions (no runtime IO)
Sources
Download
MIT
The Requires
-
php ~5.6|~7.0
-
composer-plugin-api ^1.0
The Development Requires
by
ThaDafinser