NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #4681 most downloaded on Packagist
Semantic versioning helper library
Latest stable
6.1.1
Last release 1 years ago
14 Jun 2025
Release timing varies
gaps range from 4 weeks to 2.2 years
Most releases are documented
notes for 12 of 19 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
19 releases · first in 2016
Drag across the ruler to compare, or tap a release to open it.
Fix Version::parse for incomplete version string with preRelease/build ( #38 - Thanks @rikonek !)
Updated development dependencies
Add ability to compare versions major, minor or patch versions only ( #35 - Thanks @MuhmdRaouf !)
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Minimum supported PHP version is now 8.0
isPreRelease() methodhasBuild() methodVersion class JSON serializable (#33 - Thanks @joint-tech!)Version class inheritable (#34 - Thanks @joint-tech!)preRelease sometimes ending up as an empty stringNew incrementPreRelease() method ( #24 - Thanks @oscar-ol !)
Detailed changelog: https://github.com/PHLAK/SemVer/compare/3.2.0...4.0.0
SemVer::compare() methodDetailed changelog: https://github.com/PHLAK/SemVer/compare/3.2.0...4.0.0
Added Version::parse() static constructor for parsing incomplete version strings
Version::parse() static constructor for parsing incomplete version strings (#11)Detailed changelog: 3.1.0...3.2.0
Enforce minimum PHP version to >=7.1
Detailed changelog: 3.0.1...3.1.0
Detailed changelog: https://github.com/PHLAK/SemVer/compare/3.0.1...3.1.0
Fixed comparisons being broken for some versions with pre-releases ( #14 , #15 )
Detailed changelog: 3.0.0...3.0.1
Implemented the magic __toString() method allowing a Version object it to be cast to a string (e.g. (string) $semver )
semver() helper method__toString() method allowing a Version object it to be cast to a string (e.g. (string) $semver)Version::gt(), Version::lt(), etc.)Version::toString() method (see above for casting to string)Detailed changelog: 2.0.1...3.0.0
Bumped required PHP version to >= 5.6
>= 5.6Detailed changelog: https://github.com/PHLAK/SemVer/compare/1.0.0...2.0.1
This is the initial stable rlease. With this release comes a major refactor, including:
This is the initial stable rlease. With this release comes a major refactor, including:
PHLAK\SemVerSemVer\SemVer to SemVer\Version__get() method for accessing version properties__toString() method allowing the class to act as a stringNothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.