2017 © Pedro Peláez
 

library version

Version management class

image

phpextra/version

Version management class

  • Sunday, January 4, 2015
  • by jkobus
  • Repository
  • 2 Watchers
  • 1 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Version library

Build Status, (*1)

This library is a wrapper for herrera-io/php-version., (*2)

Installation

Version can be installed via Composer:, (*3)

{
    "require": {
        "phpextra/version": "~1.0"
    }
}

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., (*4)

Requirements

See composer.json for a full list of dependencies., (*5)

Authors

Jacek Kobus - kobus.jacek@gmail.com, (*6)

License information

See the file LICENSE.txt for copying permission.

The Versions

04/01 2015

dev-master

9999999-dev

Version management class

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jacek Kobus

11/04 2014

1.0.0

1.0.0.0

Version management class

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jacek Kobus