phar-io/version
Library for handling version information and constraints observed · 2026-08-28
Health v2 · maintenance only
60/100
- Activity 83
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3563
- days_rel: n/a
- days_push: 105
- n_releases_24m: 0
Adoption not part of the score
7463 stars · 18 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A PHP library for parsing, comparing, and checking semantic version numbers and version constraints such as caret and tilde ranges. It supports pre-release labels and is used by tools like PHIVE for version handling.
Use cases
- parse semver version strings in php
- check if a version satisfies a constraint like ^7.0
- compare versions including pre-release labels
- implement dependency version resolution
- validate version numbers in a php application
When to choose
- you need semver parsing and constraint matching in PHP
- you are building a package or tool manager that resolves version ranges
- you need caret/tilde operator semantics matching Composer conventions
When to avoid
- you need full Composer dependency resolution, not just version comparison
- your project is not in PHP
- you need changelog generation or release automation rather than version parsing
Facets
library · maturity stable
parser serialization developer-tools version-control programming-languages php semantic-versioning version-constraints composer php-library
2 sources
- readme: https://github.com/phar-io/version · fetched 2026-08-28 · 9567e0e67d30
- homepage: https://phar.io/ · fetched 2026-08-29 · c119890c8bc9
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| phar-io/version | main | 60 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem