Releases: z4kn4fein/php-semver
Releases · z4kn4fein/php-semver
v3.0.0
01 Apr 16:24
Compare
Sorry, something went wrong.
No results found
Changed
Required PHP version to 8.1.
v2.0.2
23 Mar 09:57
Compare
Sorry, something went wrong.
No results found
Fixed
#6 : Calling copy on a stable version attached an empty pre-release identity to the new version.
v2.0.1
15 Sep 17:34
Compare
Sorry, something went wrong.
No results found
Added
Support for | as constraint OR operator. Now constraints like ^2|^3 are recognised correctly.
Dedicated sorting methods.
v2.0.0
13 Sep 19:50
Compare
Sorry, something went wrong.
No results found
Added
Constraint validation support.
Loose version parsing support.
->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.
API documentation .
Breaking changes
Instance level comparison methods are now only accept Version parameters. String based version comparison is still available with static comparison methods.
VersionFormatException was renamed to SemverException.
v1.2.0
21 Mar 10:37
Compare
Sorry, something went wrong.
No results found
Increased the required PHP version to 7.1
v1.1.0
09 Jan 03:27
Compare
Sorry, something went wrong.
No results found
Added copy() functionality.
Fixed pre-release regex matching.
v1.0.1
03 Jan 10:33
Compare
Sorry, something went wrong.
No results found
Added increment functionality
v1.0.0
25 Dec 22:46
Compare
Sorry, something went wrong.
No results found