PHPackages                             neilmasters/semanticreleases - 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. neilmasters/semanticreleases

ActiveLibrary

neilmasters/semanticreleases
============================

Utility to manage semantic release versions

v1.0.0(3y ago)12MITPHPPHP &gt;=8.0

Since Oct 5Pushed 3y ago1 watchersCompare

[ Source](https://github.com/NeilMasters/SemanticReleases)[ Packagist](https://packagist.org/packages/neilmasters/semanticreleases)[ RSS](/packages/neilmasters-semanticreleases/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

SemanticReleases
----------------

[](#semanticreleases)

The SemanticReleases contains utilities to help maintain semantic release versions.

### Versioning()

[](#versioning)

Encapsulates functionality around bumping version numbers. `Versioning::gerIncreasedVersion()` Will accept a current version and increase it depending on it being a major, minor or fix change.

Example usage:

```
$versioning = new \SemanticReleases\Util\Versioning();
$versioning->getIncreasedVersion('1.0.0'); // $increaseType defaults to major bump 2.0.0
$versioning->getIncreasedVersion('1.0.0', \SemanticReleases\Util\Versioning::MINOR); // 1.1.0
$versioning->getIncreasedVersion('1.0.0', \SemanticReleases\Util\Versioning::FIX); // 1.0.1
```

You can view the unit tests to see every possible combination you can throw at the `getIncreasedVersion()` method.

#### Bad version values

[](#bad-version-values)

To facilitate conversion from one format to another getIncreasedVersion() will do a lot of work to try and convert the passed version to a semantic format.

In the event that a version passed does not follow major.minor.fix or is just completely wrong, the getIncreasedVersion() method will fix it at best or at worst just give you back a 1.0.0 version.

Examples of non standard input:

```
$versioning = new \SemanticReleases\Util\Versioning();
$versioning->getIncreasedVersion(1); // 2.0.0
$versioning->getIncreasedVersion(1.1); // 2.0.0
$versioning->getIncreasedVersion('a'); // 1.0.0
$versioning->getIncreasedVersion('a.b'); // 1.0.0
$versioning->getIncreasedVersion('a.b.c'); // 1.0.0
```

To summarise, you will get a correct major.minor.fix version number, regardless what you throw at it. Now, if that is the value you wanted is a different matter.

#### Empty version

[](#empty-version)

In the event of an empty version we convert it to 0 so the returned version will be 1.0.0. Useful if you are initialising versions.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

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

Unknown

Total

1

Last Release

1319d ago

### Community

Maintainers

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

---

Top Contributors

[![NeilMasters](https://avatars.githubusercontent.com/u/6899269?v=4)](https://github.com/NeilMasters "NeilMasters (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/neilmasters-semanticreleases/health.svg)

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

PHPackages © 2026

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