PHPackages                             exposuresoftware/versioner - 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. exposuresoftware/versioner

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

exposuresoftware/versioner
==========================

2.0.0(2y ago)011[1 PRs](https://github.com/marshall-davis/Versioner/pulls)MITPHPPHP ^8.2CI failing

Since Aug 2Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/marshall-davis/Versioner)[ Packagist](https://packagist.org/packages/exposuresoftware/versioner)[ RSS](/packages/exposuresoftware-versioner/feed)WikiDiscussions main Synced yesterday

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

Versioner
=========

[](#versioner)

Handle version numbers and versioning for various platforms.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require exposuresoftware/versioner
```

Usage
-----

[](#usage)

Simply provide the current version and use the helper methods to increment segments.

```
VersionString::incrementPatch('v1.0.0'); // 'v1.0.1'
VersionString::incrementMinor('v1.0.0'); // 'v1.1.0'
VersionString::incrementMajor('v0.1.30-alpha'); // 'v2.0.0'
```

Note that any version bump will remove the pre-release label and/or build data if any were included.
If you wish to keep the pre-release label you can do so:

```
(string)(new VersionString('v2.0.0-alpha'))->preserveSuffix()->increment(VersionSegment::MINOR); // 'v2.1.0-alpha'
```

Credits
-------

[](#credits)

- [Marshall Davis](https://github.com/toothlessrebel)
- [Everyone Who Has Contributed](../../contributors)

License
-------

[](#license)

Published under the MIT license (MIT). Complete details available in the [license file](LICENSE).

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance49

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

4

Last Release

1018d ago

Major Versions

1.0.2 → 2.0.02023-09-19

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10428070?v=4)[MarshallDavis](/maintainers/MarshallDavis)[@marshalldavis](https://github.com/marshalldavis)

---

Top Contributors

[![marshall-davis](https://avatars.githubusercontent.com/u/3332576?v=4)](https://github.com/marshall-davis "marshall-davis (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/exposuresoftware-versioner/health.svg)

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

PHPackages © 2026

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