PHPackages                             herrera-io/version - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. herrera-io/version

Abandoned → [kherge/semver](/?search=kherge%2Fsemver)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

herrera-io/version
==================

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

1.1.1(11y ago)1141.8M—7.6%18[1 issues](https://github.com/kherge-archive/php-version/issues)[2 PRs](https://github.com/kherge-archive/php-version/pulls)10MITPHPPHP &gt;=5.3.3

Since May 13Pushed 11y ago7 watchersCompare

[ Source](https://github.com/kherge-archive/php-version)[ Packagist](https://packagist.org/packages/herrera-io/version)[ Docs](http://github.com/herrera-io/php-version)[ RSS](/packages/herrera-io-version/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (5)Used By (10)

Version
=======

[](#version)

[![Build Status](https://camo.githubusercontent.com/5e8eeb97a3f8ec2f856ab9b7cc8522c7fd26969bed701105b5152c3e82571209/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f686572726572612d696f2f7068702d76657273696f6e2e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/herrera-io/php-version)

Version is a library for creating, editing, and comparing semantic version numbers. Currently, v2.0.0 of the [Semantic Versioning](http://semver.org/spec/v2.0.0.html) 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
-------------

[](#documentation)

- [Installing](doc/00-Installing.md)
- Usage
    - [Building](doc/01-Building.md)
    - [Comparing](doc/02-Comparing.md)
    - [Dumping](doc/03-Dumping.md)
    - [Parsing](doc/04-Parsing.md)
    - [Validating](doc/05-Validating.md)

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity53

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 82.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~126 days

Total

4

Last Release

4375d ago

Major Versions

0.1.0 → 1.0.02013-07-20

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9122157?v=4)[Kevin Herrera](/maintainers/kherge)[@kherge](https://github.com/kherge)

---

Top Contributors

[![kherge](https://avatars.githubusercontent.com/u/9122157?v=4)](https://github.com/kherge "kherge (24 commits)")[![cordoval](https://avatars.githubusercontent.com/u/328359?v=4)](https://github.com/cordoval "cordoval (4 commits)")[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (1 commits)")

---

Tags

semanticversion

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/herrera-io-version/health.svg)

```
[![Health](https://phpackages.com/badges/herrera-io-version/health.svg)](https://phpackages.com/packages/herrera-io-version)
```

###  Alternatives

[wenzhixin/bootstrap-table

An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation)

11.8k283.4k1](/packages/wenzhixin-bootstrap-table)[nikolaposa/version

Value Object that represents a SemVer-compliant version number.

1406.4M16](/packages/nikolaposa-version)[shivas/versioning-bundle

Symfony application versioning, simple console command to manage version (with providers e.g. git tag) of your application using Semantic Versioning 2.0.0 recommendations

1121.2M1](/packages/shivas-versioning-bundle)[pragmarx/version

Take control over your Laravel app version

5921.2M2](/packages/pragmarx-version)[liip/rmt

Release Management Tool: a handy tool to help releasing new version of your software

457448.7k74](/packages/liip-rmt)[wolfcast/browser-detection

The Wolfcast BrowserDetection PHP class facilitates the identification of the user's environment such as Web browser, version, platform family, platform version or if it's a mobile device or not.

1391.0M7](/packages/wolfcast-browser-detection)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
