dev-master
9999999-devVersion management class
MIT
The Requires
The Development Requires
by Jacek Kobus
1.0.0
1.0.0.0Version management class
MIT
The Requires
The Development Requires
by Jacek Kobus
Wallogit.com
2017 © Pedro Peláez
Version management class
This library is a wrapper for herrera-io/php-version., (*2)
Version can be installed via Composer:, (*3)
{
"require": {
"phpextra/version": "~1.0"
}
}
namespace PHPExtra\Version;
$version1 = Version::fromString('1.0.0');
$version2 = Version::fromString('1.0.0-rc1');
$version3 = Version::fromString('0.9.0-beta');
$version1->isEarlierThan($version2);
> true
$version1->isLaterThan($version3);
> true
$version1->isEqualTo($version1);
> true
$version1->compare($version1);
> 0
$version1->compare($version2);
> -1
$version1->compare($version3);
> 1
echo (string)$version1;
> 1.0.0
All code contributions must go through a pull request. Fork the project, create a feature branch, and send me a pull request. To ensure a consistent code base, you should make sure the code follows the coding standards. If you would like to help take a look at the list of issues., (*4)
See composer.json for a full list of dependencies., (*5)
Jacek Kobus - kobus.jacek@gmail.com, (*6)
See the file LICENSE.txt for copying permission.
Version management class
MIT
Version management class
MIT