2017 © Pedro Peláez
 

library vernum

Library that helps creating, editing, sorting and comparing semantic version numbers

image

pakled/vernum

Library that helps creating, editing, sorting and comparing semantic version numbers

  • Tuesday, November 11, 2014
  • by pakled
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Vernum

Build Status Total Downloads License Hack pakled/vernum on Nitrous, (*1)

Library that helps creating, editing, sorting and comparing semantic version numbers, (*2)

Getting Started

System Requirements

You need PHP >= 5.4.0., (*3)

Installation

You may install the Vernum Component with Composer (recommended) or manually., (*4)

  1. Download the composer.phar executable or use the installer., (*5)

    sh $ curl -s https://getcomposer.org/installer | php, (*6)

  2. Create a composer.json defining your dependencies., (*7)

    json { "require": { "pakled/vernum": "dev-master" } }, (*8)

  3. Run Composer: php composer.phar install, (*9)

Usage

use Vernum\Parser;
use Vernum\Version;

$parsedVersion = Parser::parse("1.0.2-dev");

$version = new Version(
    $parsedVersion['major'],
    $parsedVersion['minor'],
    $parsedVersion['patch'],
    $parsedVersion['labels']
);

echo $version->getMajor();
echo $version->getMinor();
echo $version->getPatch();

License

Vernum is licensed under the MIT license., (*10)

The Versions

11/11 2014

dev-master

9999999-dev

Library that helps creating, editing, sorting and comparing semantic version numbers

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Thomas Schramm

05/02 2014

0.2.x-dev

0.2.9999999.9999999-dev

Library that helps creating, editing, sorting and comparing semantic version numbers

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Thomas Schramm

04/02 2014

0.1.0.x-dev

0.1.0.9999999-dev

Library that helps creating, editing, sorting and comparing semantic version numbers

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Thomas Schramm

04/02 2014

v0.1.0

0.1.0.0

Library that helps creating, editing, sorting and comparing semantic version numbers

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Thomas Schramm

04/02 2014

v0.1.1

0.1.1.0

Library that helps creating, editing, sorting and comparing semantic version numbers

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Thomas Schramm