PHPackages                             jmirandase/git-semver-tool - 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. jmirandase/git-semver-tool

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

jmirandase/git-semver-tool
==========================

Git based semver tool

0.1.1(9y ago)0130BSD-3-ClauseShell

Since Mar 10Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jmirandase/git_semver_tool)[ Packagist](https://packagist.org/packages/jmirandase/git-semver-tool)[ RSS](/packages/jmirandase-git-semver-tool/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

Git based semver shell utility
==============================

[](#git-based-semver-shell-utility)

This utility is a custom version of [semver-tool](https://github.com/fsaintjacques/semver-tool). It allows you to manipulate version bumping in a project that follows the [semver](https://github.com/mojombo/semver) specification and automatically creates a git tag with each version.

[![Stable Version](https://camo.githubusercontent.com/06adae0489359cfd2e2bf6fbba8a29806423c4d10cb1a4416a3775b158c45960/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f6a6d6972616e646173652f6769745f73656d7665725f746f6f6c2e737667)](https://github.com/jmirandase/git_semver_tool/tree/0.1.0)[![License](https://camo.githubusercontent.com/db8653f576ee48c1c185cb58ab1eb706c0d69ee77e8279da65af2e93df25a688/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d47504c2d2d332e302d626c75652e7376673f7374796c653d666c6174)](https://github.com/jmirandase/semver-tool/blob/master/LICENSE)

usage
-----

[](#usage)

```
Usage:
  semver
  semver bump (major|minor|patch|prerel |build )
  semver compare
  semver --help
  semver --version

Arguments:
    A version must match the following regex pattern:
             \"${SEMVER_REGEX}\".
             In english, the version must match X.Y.Z(-PRERELEASE)(+BUILD)
             where X, Y and Z are positive integers, PRERELEASE is an optionnal
             string composed of alphanumeric characters and hyphens and
             BUILD is also an optional string composed of alphanumeric
             characters and hyphens.

    See  definition.

    String that must be composed of alphanumeric characters and hyphens.

     String that must be composed of alphanumeric characters and hyphens.

Options:
  -v, --version          Print the version of this tool.
  -h, --help             Print this help message.

Commands:
  bump     Bump  by one of major, minor, patch, prerel, build
           or a forced potentialy conflicting version. The bumped version is
           shown to stdout.

  compare  Compare  with , output to stdout the
           following values: -1 if  is newer, 0 if equal, 1 if
           older."

```

examples
--------

[](#examples)

Basic bumping operations

```
$ semver bump patch 0.1.0
0.1.1
$ semver bump minor 0.1.1
0.2.0
$ semver bump patch 0.2.0
0.2.1
$ semver bump major 0.2.1
1.0.0
$ semver bump patch 1.0.0
1.0.1
$ semver bump prerel rc1.1.0 1.0.1
1.0.1-rc1.1.0
$ semver bump build build.051 1.0.1-rc1.1.0
1.0.1-rc1.1.0+build.051

```

Comparing version for scripting

```
$ semver compare 1.0.1-rc1.1.0+build.051 1.0.1
1
$ semver compare 1.0.1-rc1.1.0+build.051 1.0.1-rc1.1.0
0
$ semver compare 1.0.1-rc1.1.0+build.051 1.0.1-rc1.1.0+build.052
0
$ semver compare 1.0.1-rc1.1.0+build.051 1.0.1-rb1.1.0
1
$ semver compare 10.1.4-rc4 10.4.2-rc1
-1

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

2

Last Release

3347d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/54afe0be0d7b874e7b52610de8482c4746465f070ee92d9c41831bc31c1faafe?d=identicon)[jmirandase](/maintainers/jmirandase)

---

Top Contributors

[![jmirandase](https://avatars.githubusercontent.com/u/1168442?v=4)](https://github.com/jmirandase "jmirandase (5 commits)")

---

Tags

utilitysemvergitversionbump

### Embed Badge

![Health badge](/badges/jmirandase-git-semver-tool/health.svg)

```
[![Health](https://phpackages.com/badges/jmirandase-git-semver-tool/health.svg)](https://phpackages.com/packages/jmirandase-git-semver-tool)
```

###  Alternatives

[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k394.3M1.5k](/packages/nette-utils)[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)[phpcsstandards/phpcsutils

A suite of utility functions for use with PHP\_CodeSniffer

6233.4M57](/packages/phpcsstandards-phpcsutils)[jelix/version

Parse any version syntax, including semantic version. Compare version, using Composer version constraints syntax.

13193.0k4](/packages/jelix-version)

PHPackages © 2026

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