PHPackages                             pakled/vernum - 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. pakled/vernum

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

pakled/vernum
=============

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

v0.1.1(12y ago)021MITPHPPHP &gt;=5.4.0

Since Feb 4Pushed 11y agoCompare

[ Source](https://github.com/pakled/vernum)[ Packagist](https://packagist.org/packages/pakled/vernum)[ RSS](/packages/pakled-vernum/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (1)Dependencies (1)Versions (5)Used By (0)

Vernum
======

[](#vernum)

[![Build Status](https://camo.githubusercontent.com/6c9824b865a6ccfa1691375bc267d96188c6c82596cee11714f853aeb615a7f2/68747470733a2f2f6170692e7472617669732d63692e6f72672f70616b6c65642f7665726e756d2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/pakled/vernum)[![Total Downloads](https://camo.githubusercontent.com/cf7578a6a348e749039636b62b625396e04b3a7a6bc6c80a576700ad0aea6ba9/68747470733a2f2f706f7365722e707567782e6f72672f70616b6c65642f7665726e756d2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/pakled/vernum)[![License](https://camo.githubusercontent.com/58845f22c12464e9b5a2de3f24c0dd9e0d1239911e80a8fd317b303820ac4bc9/68747470733a2f2f706f7365722e707567782e6f72672f70616b6c65642f7665726e756d2f6c6963656e73652e706e67)](https://packagist.org/packages/pakled/vernum)[![Hack pakled/vernum on Nitrous](https://camo.githubusercontent.com/929276ab492670d4910a285d124516fccd6c224799a7700f990890949b51075f/68747470733a2f2f64336f306d6e626776366b3932612e636c6f756466726f6e742e6e65742f6173736574732f6861636b2d732d76312d31393435386235343065623961306236613934336565366432373934313639392e706e67)](https://www.nitrous.io/hack_button?source=embed&runtime=php&repo=pakled%2Fvernum)

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

Getting Started
---------------

[](#getting-started)

### System Requirements

[](#system-requirements)

You need **PHP &gt;= 5.4.0**.

### Installation

[](#installation)

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

1. Download the [`composer.phar`](https://getcomposer.org/composer.phar) executable or use the installer.

    ```
    $ curl -s https://getcomposer.org/installer | php
    ```
2. Create a composer.json defining your dependencies.

    ```
    {
        "require": {
            "pakled/vernum": "dev-master"
        }
    }
    ```
3. Run Composer: `php composer.phar install`

Usage
-----

[](#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
-------

[](#license)

Vernum is licensed under the MIT license.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

4

Last Release

4485d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d0381f12266b4fc19ed0f3469bfd88b0fc68707271b3ce7d0413dc5006d36d41?d=identicon)[pakled](/maintainers/pakled)

---

Top Contributors

[![schramm42](https://avatars.githubusercontent.com/u/2837604?v=4)](https://github.com/schramm42 "schramm42 (18 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pakled-vernum/health.svg)

```
[![Health](https://phpackages.com/badges/pakled-vernum/health.svg)](https://phpackages.com/packages/pakled-vernum)
```

###  Alternatives

[wapmorgan/morphos

A morphological solution for Russian and English language written completely in PHP. Provides classes to inflect personal names, geographical names, decline and pluralize nouns, generate cardinal and ordinal numerals, spell out money amounts and time.

8351.3M7](/packages/wapmorgan-morphos)[mcp/sdk

Model Context Protocol SDK for Client and Server applications in PHP

1.4k423.9k30](/packages/mcp-sdk)[hackzilla/password-generator

Password Generator Library

3035.2M15](/packages/hackzilla-password-generator)[alibaba/nacos

阿里巴巴nacos配置中心php客户端

19340.8k1](/packages/alibaba-nacos)[bvdputte/kirby-fingerprint

Cache-busting utility to fingerprint assets (JS/CSS) in Kirby 3

1610.0k](/packages/bvdputte-kirby-fingerprint)

PHPackages © 2026

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