PackageTrack
Sign in Get early access

nikolaposa/version

Value Object that represents a SemVer-compliant version number.

4.2.1 8.0M downloads/mo #1119 most downloaded on Packagist nikolaposa/version

What this package is like to depend on

Last release 1 years ago

24 Mar 2025

Release timing varies

gaps range from 1 weeks to 2.6 years

Most releases are documented

notes for 16 of 22 stable releases

Nothing withdrawn

no release was ever pulled

11 years old

23 releases · first in 2015

0 releases in the last 12 months

see the full history below

Release timeline

23 releases · Sep 2015 to Mar 2025
2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 23
  1. 4.2.1 24 Mar 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 4.2.0...4.2.1

    Open source →
    Release notes Open source →
  2. 4.2.0 29 Dec 2023
    Release notes

    Changed

    • Updated code to use PHP 8 syntax
    • PHP 8.1 is now the minimum required version
    • Updated dependencies to their latest versions
    Open source →
    Release notes

    Changed

    • Updated code to use PHP 8 syntax
    • PHP 8.1 is now the minimum required version
    • Updated dependencies to their latest versions
    Open source →
  3. 4.1.1 04 Aug 2023
    Release notes Open source →
    Release notes Open source →
  4. 4.1.0 12 Dec 2020
    Release notes
    Open source →
    Release notes
    Open source →
  5. 4.0.0 29 Dec 2019
    Release notes

    Changed

    • PHPUnit 8 is now the minimum required version
    • Rename VersionsCollection to VersionCollection
    • Version->getPreRelease() now explicitly returns nullable type
    • Version->getBuild() now explicitly returns nullable type
    • Rename Version::fromParts() to Version::from()
    • Rename Version->getVersionString() to Version->toString()
    • Use beberlei/assert library for input validation
    • Rename Version\Comparator namespace to Version\Comparison
    • Move Version\Constraint namespace to Version\Comparison\Constraint
    • Rename ComparatorInterface to Comparator
    • Rename ComparisonConstraint to OpeationConstraint
    • Rename ComparisonConstraintParser to OpeationConstraintParser
    • Rename component-level Version\Exception\ExceptionInterface to Version\Exception\VersionException
    • Move comparision-related exceptions into Version\Comparision\Exception namespace
    • Remove -Exception suffix from all concrete exception names
    • Rename BaseExtension to Extension
    • Rename PreRelease::fromIdentifiers() to PreRelease::from()
    • Rename Build::fromIdentifiers() to Build::from()
    • Rename PreRelease::fromIdentifiersString() to PreRelease::fromString()
    • Rename Build::fromIdentifiersString() to Build::fromString()

    Removed

    • Version\VersionAwareInterface
    • Version\VersionAwareTrait
    • Version\Extension\NoPreRelease
    • Version\Extension\NoBuild
    • Version->isBuild()
    • VersionCollection->sort()
    • PreRelease->isEmpty()
    • PreRelease->__toString()
    • Build->isEmpty()
    • Build->__toString()

    Added

    • OperationConstraint::equalsTo() named constructor
    • OperationConstraint::notEqualTo() named constructor
    • OperationConstraint::greaterThan() named constructor
    • OperationConstraint::greaterOrEqualTo() named constructor
    • OperationConstraint::lessThan() named constructor
    • OperationConstraint::lessOrEqualTo() named constructor
    • Prefix supplied in Version::fromString() is captured and included in toString() result
    Open source →
    Release notes

    Changed

    • PHPUnit 8 is now the minimum required version
    • Rename VersionsCollection to VersionCollection
    • Version->getPreRelease() now explicitly returns nullable type
    • Version->getBuild() now explicitly returns nullable type
    • Rename Version::fromParts() to Version::from()
    • Rename Version->getVersionString() to Version->toString()
    • Use beberlei/assert library for input validation
    • Rename Version\Comparator namespace to Version\Comparison
    • Move Version\Constraint namespace to Version\Comparison\Constraint
    • Rename ComparatorInterface to Comparator
    • Rename ComparisonConstraint to OpeationConstraint
    • Rename ComparisonConstraintParser to OpeationConstraintParser
    • Rename component-level Version\Exception\ExceptionInterface to Version\Exception\VersionException
    • Move comparision-related exceptions into Version\Comparision\Exception namespace
    • Remove -Exception suffix from all concrete exception names
    • Rename BaseExtension to Extension
    • Rename PreRelease::fromIdentifiers() to PreRelease::from()
    • Rename Build::fromIdentifiers() to Build::from()
    • Rename PreRelease::fromIdentifiersString() to PreRelease::fromString()
    • Rename Build::fromIdentifiersString() to Build::fromString()

    Removed

    • Version\VersionAwareInterface
    • Version\VersionAwareTrait
    • Version\Extension\NoPreRelease
    • Version\Extension\NoBuild
    • Version->isBuild()
    • VersionCollection->sort()
    • PreRelease->isEmpty()
    • PreRelease->__toString()
    • Build->isEmpty()
    • Build->__toString()

    Added

    • OperationConstraint::equalsTo() named constructor
    • OperationConstraint::notEqualTo() named constructor
    • OperationConstraint::greaterThan() named constructor
    • OperationConstraint::greaterOrEqualTo() named constructor
    • OperationConstraint::lessThan() named constructor
    • OperationConstraint::lessOrEqualTo() named constructor
    • Prefix supplied in Version::fromString() is captured and included in toString() result
    Open source →
  6. 3.2.0 11 Aug 2019
    Release notes Open source →
    Release notes Open source →
  7. 3.1.0 14 Jun 2018
    Release notes

    Added

    • Support for parsing Composer version strings
    • Add VersionsCollection::isEmpty() method
    • Add VersionsCollection::toArray() method
    • Add immutable VersionsCollection::sortedAscending() and VersionsCollection::sortedDescending() methods; mark VersionsCollection::sort() as deprecated
    • Add VersionsCollection::first() method
    • Add VersionsCollection::last() method
    • Add VersionsCollection::majorReleases() method
    • Add VersionsCollection::minorReleases() method
    • Add VersionsCollection::patchReleases() method
    Open source →
    Release notes

    Added

    • Support for parsing Composer version strings
    • Add VersionsCollection::isEmpty() method
    • Add VersionsCollection::toArray() method
    • Add immutable VersionsCollection::sortedAscending() and VersionsCollection::sortedDescending() methods; mark VersionsCollection::sort() as deprecated
    • Add VersionsCollection::first() method
    • Add VersionsCollection::last() method
    • Add VersionsCollection::majorReleases() method
    • Add VersionsCollection::minorReleases() method
    • Add VersionsCollection::patchReleases() method
    Open source →
  8. 3.0.2 28 May 2018
    Release notes Open source →
    Release notes Open source →
  9. 3.0.1 05 May 2018
    Release notes

    Fixed

    • VersionsCollection::matching() fails if all the versions do not satisfy constraint; allow VersionsCollection to be empty
    Open source →
    Release notes

    Fixed

    • VersionsCollection::matching() fails if all the versions do not satisfy constraint; allow VersionsCollection to be empty
    Open source →
  10. 3.0.0 02 May 2018
    Release notes

    Added

    Changed

    Removed

    • Setter method from the VersionAwareInterface
    • Version::from(Major|Minor|Path|PreRelease|Build) named constructors in favor of having a single Version::fromParts() named constructor with optional parameters
    • VersionCollection::fromArray(); constructor with variadic Version arguments should be used instead
    Open source →
    Release notes

    Added

    Changed

    Removed

    • Setter method from the VersionAwareInterface
    • Version::from(Major|Minor|Path|PreRelease|Build) named constructors in favor of having a single Version::fromParts() named constructor with optional parameters
    • VersionCollection::fromArray(); constructor with variadic Version arguments should be used instead
    Open source →
  11. 2.2.2 22 Apr 2018
    Release notes Open source →
  12. 2.2.1 01 Jan 2017
    Release notes

    Fixed

    • Coding standard fixes
    • Using friendsofphp/php-cs-fixer instead of abandoned fabpot/php-cs-fixer.
    Open source →
  13. 2.2.0 14 Jul 2016
    Release notes Open source →
  14. 2.1.0 11 Jun 2016
    Release notes

    Added

    Open source →
  15. 2.0.1 02 Jun 2016
    Release notes

    Added

    Fixed

    Open source →
  16. 2.0.0 02 Jun 2016
    Release notes

    Added

    • Static factory methods, for example Version::fromMajor(), Version::fromPreRelease().
    • Methods for modifying pre-release and build information of a version.

    Backwards-incompatible changes

    • Static factory methods (named constructors) are used to instantiate objects instead of constructors.
    • increment* methods in Version\Version class were renamed to with*Incremented.
    • Version\Identifier\PreRelease renamed to Version\Identifier\PreReleaseIdentifier.
    • Version\Identifier\Build renamed to Version\Identifier\BuildIdentifier.
    Open source →
  17. 1.2.3 09 Apr 2016

    Nothing published for this version

  18. 1.2.2 09 Apr 2016

    Nothing published for this version

  19. 1.2.1 27 Sep 2015

    Nothing published for this version

  20. 1.2.0 27 Sep 2015

    Nothing published for this version

  21. 1.1.0 26 Sep 2015

    Nothing published for this version

  22. 1.0.0 20 Sep 2015

    Nothing published for this version

  23. 1.0.0-alpha 19 Sep 2015 pre-release

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive