Ocramius/PackageVersions
:package: Composer addon to efficiently get installed packages' version numbers observed · 2026-08-28
Health v2 · maintenance only
83/100
- Activity 99
- Release rhythm 52
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 234.5
- age_days: 3873
- days_rel: 104
- days_push: 7
- n_releases_24m: 3
Adoption not part of the score
3171 stars · 73 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A Composer plugin for PHP that provides fast, zero-IO access to the installed version numbers of Composer dependencies. It compiles package version data from composer.lock at install time so lookups at runtime require no file reads.
Use cases
- get installed composer package version numbers in php
- check dependency version at runtime without file io
- embed package versions in generated assets or artifacts
- log the versions of composer dependencies my app uses
- php library to read versions from composer.lock
When to choose
- you need dependency version info at runtime with no IO overhead
- you generate code or assets that must reflect installed package versions
- you want a tiny, stable composer addon maintained by a well-known PHP contributor
When to avoid
- you are not using Composer to manage PHP dependencies
- you only need version info at build time and can parse composer.lock yourself
- you are on PHP with Composer 2.1+ and can use the built-in Composer\InstalledVersions API instead
Facets
library · maturity stable
package-manager developer-tools configuration-management developer-tools version-control php cli composer composer-plugin version-numbers dependency-versions php zero-io build-time-generation automation
1 source
- readme: https://github.com/Ocramius/PackageVersions · fetched 2026-08-28 · a8399c9e9d93
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| Ocramius/PackageVersions | main | 83 |
For agents
markdown · JSON · MCP: product_card(name="Ocramius/PackageVersions")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem