Registry / utility / ocramius-package-versions

ocramius-package-versions

JSON →
library2.12.0phppackagistunverified

Provides efficient querying for installed package versions (no runtime IO)

composer require ocramius/package-versions
INSTALL
IMPORT
SIG · OCRAMIUS-PACKAGE-V
O
ocramius-package-versions
utilityphpv2.12.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Versions
use PackageVersions\Versions;

Retrieve the installed version of a package

use PackageVersions\Versions; $version = Versions::getVersion('ocramius/package-versions'); echo $version;
Debug
Known issues
breakingThis package is deprecated in favor of composer-runtime-api and may not work with Composer 2+.
fix
Use Composer\InstalledVersions from composer-runtime-api instead.
affects: >=2.0.0
Upgrade
Version history
2.12.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
ocramius-package-versions — pip install ocramius-package-versions · libregistry