Skip to content
This repository has been archived by the owner on Feb 1, 2020. It is now read-only.
/ php-version Public archive

A library for creating, editing, and comparing semantic versioning numbers.

License

Notifications You must be signed in to change notification settings

kherge-archive/php-version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Version

Build Status

Version is a library for creating, editing, and comparing semantic version numbers. Currently, v2.0.0 of the Semantic Versioning specification is supported.

use Herrera\Version\Dumper;
use Herrera\Version\Parser;

$builder = Parser::toBuilder('1.2.3-alpha+2');
$builder->incrementMajor();
$builder->clearBuild();
$builder->clearPreRelease();

echo Dumper::toString($builder); // echoes "2.0.0"

$finalVersion = $builder->getVersion();

Documentation

About

A library for creating, editing, and comparing semantic versioning numbers.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages