NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #2912 most downloaded on Packagist
Semantic Versioning library for PHP. It implements the full semantic version 2.0.0 specification and provides ability to parse, compare, and increment semantic versions along with validation against constraints.
Last release 3 years ago
no release in 18 months
Release timing varies
gaps range from 8 days to 2.0 years
Most releases are documented
notes for 7 of 8 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
8 releases · first in 2019
Changed Required PHP version to 8.1 .
8.1.Fixed #6 : Calling copy on a stable version attached an empty pre-release identity to the new version.
copy on a stable version attached an empty pre-release identity to the new version.Support for | as constraint OR operator. Now constraints like ^2|^3 are recognised correctly.
One column per quarter.
| as constraint OR operator. Now constraints like ^2|^3 are recognised correctly.->isPreRelease() method to determine whether the actual version is pre-release or not.
->isPreRelease() method to determine whether the actual version is pre-release or not.->isStable() method to determine whether the actual version is stable or not.->withoutSuffixes() method to get the version without suffixes.Version::compare() and Version::compareString() methods to use with usort().->isNotEqual(Version) and Version::notEqual(string) comparison methods.Version::parseOrNull() and Constraint::parseOrNull() methods for cases when exception-less execution is more desirable.Version parameters. String based version comparison is still available with static comparison methods.VersionFormatException was renamed to SemverException.Increased the required PHP version to 7.1
Fixed pre-release regex matching.
copy() functionality.Added increment functionality
Added increment functionality
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →