php-semver

Semantic Versioning library for PHP.

MIT License

Downloads
785.1K
Stars
15
Committers
3
php-semver - v3.0.0 Latest Release

Published by z4kn4fein 7 months ago

Changed

  • Required PHP version to 8.1.
php-semver - v2.0.2

Published by z4kn4fein over 1 year ago

Fixed

  • #6: Calling copy on a stable version attached an empty pre-release identity to the new version.
php-semver - v2.0.1

Published by z4kn4fein about 2 years ago

Added

  • Support for | as constraint OR operator. Now constraints like ^2|^3 are recognised correctly.
  • Dedicated sorting methods.
php-semver - v2.0.0

Published by z4kn4fein about 2 years ago

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.
php-semver - v1.2.0

Published by z4kn4fein over 2 years ago

  • Increased the required PHP version to 7.1
php-semver - v1.1.0

Published by z4kn4fein almost 3 years ago

  • Added copy() functionality.
  • Fixed pre-release regex matching.
php-semver - v1.0.1

Published by z4kn4fein almost 5 years ago

Added increment functionality

php-semver - v1.0.0

Published by z4kn4fein almost 5 years ago