PHPackages                             hallowelt/lib-versionbumper - 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. hallowelt/lib-versionbumper

ActiveLibrary

hallowelt/lib-versionbumper
===========================

Simple utility classes to modiy SemVer compliant version numbers

1.1.1(2y ago)0157MITPHP

Since Jul 12Pushed 2y ago3 watchersCompare

[ Source](https://github.com/hallowelt/lib-versionbumper)[ Packagist](https://packagist.org/packages/hallowelt/lib-versionbumper)[ RSS](/packages/hallowelt-lib-versionbumper/feed)WikiDiscussions main Synced 4w ago

READMEChangelog (3)Dependencies (6)Versions (4)Used By (0)

Version Bumper
==============

[](#version-bumper)

Examples
--------

[](#examples)

Example of `VersionBumper`:

```
$bumper = new HalloWelt\Lib\VersionBumper\VersionBumper();
$bumper->bumpMAJOR( '1.1.6' ); // "2.0.0"
$bumper->bumpMINOR( '1.1.6' ); // "1.2.0"
$bumper->bumpPATCH( '1.1.6' ); // "1.1.7"
$bumper->bumpPRERELEASE( '1.1.6', 'rc' ); // "1.1.6-rc.1"
$bumper->setMETADATA( '1.1.6-beta', 'WEEK27' ); // "1.1.6-beta.1+WEEK27" ATTENTION: PRERELEASE WILL BE NORMALIZED
```

Example of `Utils::isVersionValid`:

```
$utils = new HalloWelt\Lib\VersionBumper\Utils();
$utils->isVersionValid( '1.1.6' ); // true
$utils->isVersionValid( '1.1.6-beta' ); // true
$utils->isVersionValid( '1.1.6-beta.1' ); // true
$utils->isVersionValid( '1.1.6-beta.1+WEEK27' ); // true
```

Example of `Utils::getPreviousVersion`:

```
$utils = new HalloWelt\Lib\VersionBumper\Utils();
$utils->getPreviousVersion( '1.1.6', [ '1.1.7', '1.1.6', 'NOTAVERSION', '1.1.5', '1.1.4' ] ); // "1.1.5"
$utils->getPreviousVersion( '1.1.6-beta', [ '1.1.7', '1.1.6', 'NOTAVERSION', '1.1.5', '1.1.4' ]); // "1.1.5"
```

Example of `Utils::getUpdateType`:

```
$utils = new HalloWelt\Lib\VersionBumper\Utils();
$utils->getUpdateType( '1.1.6', '1.1.7' ); // Utils::TYPE_PATCH
$utils->getUpdateType( '1.1.6', '1.2.0' ); // Utils::TYPE_MINOR
$utils->getUpdateType( '1.1.6', '2.0.0' ); // Utils::TYPE_MAJOR
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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 ~169 days

Total

3

Last Release

1057d ago

### Community

Maintainers

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hallowelt-lib-versionbumper/health.svg)

```
[![Health](https://phpackages.com/badges/hallowelt-lib-versionbumper/health.svg)](https://phpackages.com/packages/hallowelt-lib-versionbumper)
```

PHPackages © 2026

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