PackageTrack
Sign in Get early access

phar-io/version

Library for handling version information and constraints

3.2.1 813M downloads/mo #61 most downloaded on composer phar-io/version

What this package is like to depend on

Last release 5 years ago

no release in 18 months

Release timing varies

gaps range from 2 weeks to 1.8 years

Most releases are documented

notes for 11 of 13 stable releases

Nothing withdrawn

no release was ever pulled

9 years old

13 releases · first in 2017

0 releases in the last 12 months

see the full history below

Release timeline

13 releases · Mar 2017 to Feb 2022
2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 13
  1. 3.2.1 21 Feb 2022
    Release notes

    Build metadata is now supported and considered for equality checks and the equal constraint

    Open source →
    Release notes

    Fixed

    • Have ExactVersionConstraint honor build metadata (added in 3.2.0)
    Open source →
  2. 3.2.0 20 Feb 2022
    Release notes

    Added

    • Build metadata is now supported and considered for equality checks only
    Open source →
  3. 3.1.1 07 Feb 2022
    Release notes

    Fixed

    • #28: VersionConstraintParser does not support logical OR represented by single pipe (|) (Thanks @llaville)
    Open source →
    Release notes

    Fixed

    • #28: VersionConstraintParser does not support logical OR represented by single pipe (|) (Thanks @llaville)
    Open source →
  4. 3.1.0 23 Feb 2021
    Release notes

    Changed

    • Internal Refactoring
    • More scalar types

    Added

    • #24: Version::getOriginalString() added (Thanks @addshore)
    • Version constraints using the caret operator (^) now honor pre-1.0 releases, e.g. ^0.3 translates to 0.3.*)
    • Various integration tests for version constraint processing

    Fixed

    • #23: Tilde operator without patch level
    Open source →
    Release notes

    Changed

    • Internal Refactoring
    • More scalar types

    Added

    • #24: Version::getOriginalString() added (Thanks @addshore)
    • Version constraints using the caret operator (^) now honor pre-1.0 releases, e.g. ^0.3 translates to 0.3.*)
    • Various integration tests for version constraint processing

    Fixed

    • #23: Tilde operator without patch level
    Open source →
  5. 3.0.4 13 Dec 2020
    Release notes

    Fixed

    • #22: make dev suffix rank works for uppercase too
    Open source →
    Release notes

    Fixed

    • #22: make dev suffix rank works for uppercase too
    Open source →
  6. 3.0.3 30 Nov 2020
    Release notes
    • Comparator method Version::equals() added
    Open source →
    Release notes

    Added

    • Comparator method Version::equals() added
    Open source →
  7. 3.0.2 27 Jun 2020
    Release notes

    This release now supports PHP 7.2+ and PHP ^8.0. No other changes included.

    Open source →
    Release notes

    This release now supports PHP 7.2+ and PHP ^8.0. No other changes included.

    Open source →
  8. 3.0.1 09 May 2020
    Release notes

    Potential BC Break Notice: Version::getVersionString() no longer returns v prefixes in case the "input" string contained one. These are not part of the semver specs (see https://semver.org/#is-v123-a-semantic-version) and get stripped out. As of Version 3.1.0 Version::getOriginalString() can be used to still retrieve it as given.

    Changed

    • Internal Refactoring
    • More scalar types

    Fixed

    • Fixed Constraint processing Regression for ^1.2 and ~1.2
    Open source →
  9. 3.0.0 05 May 2020
    Release notes

    Changed

    • Require PHP 7.2+
    • All code now uses strict mode
    • Scalar types have been added as needed

    Added

    • The technically invalid format using 'v' prefix ("v1.2.3") is now properly supported
    Open source →
  10. 2.0.1 08 Jul 2018
    Release notes

    Fixed

    • Versions without a pre-release suffix are now always considered greater
      than versions without a pre-release suffix. Example: 3.0.0 > 3.0.0-alpha.1
    Open source →
    Release notes

    Fixed

    • Versions without a pre-release suffix are now always considered greater than versions with a pre-release suffix. Example: 3.0.0 > 3.0.0-alpha.1
    Open source →
  11. 2.0.0 23 Jun 2018
    Release notes

    Changes to public API:

    • PreReleaseSuffix::construct(): optional parameter $number removed
    • PreReleaseSuffix::isGreaterThan(): introduced
    • Version::hasPreReleaseSuffix(): introduced

    Added

    • #11: Added support for pre-release version suffixes. Supported values are:

      • dev
      • beta (also abbreviated form b)
      • rc
      • alpha (also abbreviated form a)
      • patch (also abbreviated form p)

      All values can be followed by a number, e.g. beta3.

      When comparing versions, the pre-release suffix is taken into account. Example: 1.5.0 > 1.5.0-beta1 > 1.5.0-alpha3 > 1.5.0-alpha2 > 1.5.0-dev11

    Changed

    • reorganized the source directories

    Fixed

    • #10: Version numbers containing a numeric suffix as seen in Debian packages are now supported.
    Open source →
  12. 1.0.1 05 Mar 2017

    Nothing published for this version

  13. 1.0.0 03 Mar 2017

    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