Releases: z4kn4fein/php-semver
Releases · z4kn4fein/php-semver
v3.0.0
v2.0.2
v2.0.1
v2.0.0
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()
andVersion::compareString()
methods to use withusort()
.->isNotEqual(Version)
andVersion::notEqual(string)
comparison methods.Version::parseOrNull()
andConstraint::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 toSemverException
.