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 2022Releases
latest 13-
3.2.121 Feb 2022Release notes
Open source →Build metadata is now supported and considered for equality checks and the equal constraint
-
3.2.020 Feb 2022Release notes
Open source →Added
- Build metadata is now supported and considered for equality checks only
-
3.1.107 Feb 2022Release notes
Open source →Fixed
- #28:
VersionConstraintParserdoes not support logical OR represented by single pipe (|) (Thanks @llaville)
- #28:
-
3.1.023 Feb 2021Release notes
Open source →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.3translates to0.3.*) - Various integration tests for version constraint processing
Fixed
- #23: Tilde operator without patch level
Release notes
Open source →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.3translates to0.3.*) - Various integration tests for version constraint processing
Fixed
- #23: Tilde operator without patch level
-
3.0.413 Dec 2020 -
3.0.330 Nov 2020 -
3.0.227 Jun 2020Release notes
Open source →This release now supports PHP 7.2+ and PHP ^8.0. No other changes included.
Release notes
Open source →This release now supports PHP 7.2+ and PHP ^8.0. No other changes included.
-
3.0.109 May 2020Release notes
Open source →Potential BC Break Notice:
Version::getVersionString()no longer returnsvprefixes 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.0Version::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
-
3.0.005 May 2020Release notes
Open source →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
-
2.0.108 Jul 2018Release notes
Open source →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
Release notes
Open source →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
- Versions without a pre-release suffix are now always considered greater
-
2.0.023 Jun 2018Release notes
Open source →Changes to public API:
PreReleaseSuffix::construct(): optional parameter$numberremovedPreReleaseSuffix::isGreaterThan(): introducedVersion::hasPreReleaseSuffix(): introduced
Added
-
#11: Added support for pre-release version suffixes. Supported values are:
devbeta(also abbreviated formb)rcalpha(also abbreviated forma)patch(also abbreviated formp)
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.
-
1.0.105 Mar 2017Nothing published for this version
-
1.0.003 Mar 2017Nothing published for this version