Download the PHP package steevanb/version-comparator without Composer
On this page you can find all versions of the php package steevanb/version-comparator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download steevanb/version-comparator
More information about steevanb/version-comparator
Files in steevanb/version-comparator
Download steevanb/version-comparator
More information about steevanb/version-comparator
Files in steevanb/version-comparator
Vendor steevanb
Package version-comparator
Short Description Compare PHP version easier than with version_compare()
License MIT
Package version-comparator
Short Description Compare PHP version easier than with version_compare()
License MIT
Please rate this library. Is it a good library?
Informations about the package version-comparator
steevanb/version-comparator
Add classes to compare versions easier than with compare_version()
and PHP_VERSION
.
Changelog
Installation
Compare with current PHP version
You can compare current PHP version with 2 versions to know if current php version is between this 2 versions:
Shortcuts for each PHP major and minor version
PhpVersionComparator
have a shortcut who call isBetween()
for each major and minor version:
Exception instead of returning the result
If you want to throw an exception instead of returning the result,
each method have it's assert()
version who throw a VersionIsNotBetweenException
exception:
All versions of version-comparator with dependencies
PHP Build Version
Package Version
Requires
php Version
^5.6 || ^7.0 || ^8.0
The package steevanb/version-comparator contains the following files
Loading the files please wait ....