Download the PHP package phpextra/version without Composer
On this page you can find all versions of the php package phpextra/version. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package version
Version library
This library is a wrapper for herrera-io/php-version.
Installation
Version
can be installed via Composer:
Usage
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
Contributing
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.
Requirements
See composer.json for a full list of dependencies.
Authors
Jacek Kobus - [email protected]
License information
See the file LICENSE.txt for copying permission.
All versions of version with dependencies
PHP Build Version
Package Version
Requires
herrera-io/version Version
~1.0
The package phpextra/version contains the following files
Loading the files please wait ....