Module version
Source - Stability
- Stability levels in Composer semver, ordered from least to most stable.
The ordering matters for comparison.
- expand_stability
- Expand shorthand stability to full form.
E.g., “a” -> “alpha”, “b” -> “beta”, “p” -> “patch”, “rc” -> “RC”
Returns a static string for known stabilities.
- stability_order
- Get stability order for PHP
version_compare semantics.
Returns numeric order where lower = less stable. - version_compare
- Compare two version strings using PHP’s
version_compare semantics.
This is critical for matching Composer’s behavior.