PHPackages                             the-toster/composer-version - 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. the-toster/composer-version

ActiveComposer-plugin

the-toster/composer-version
===========================

Composer plugin that adds npm-like version commands (patch, minor, major) and use git tags to store versions

3.0.0(5y ago)217MITPHPCI failing

Since Feb 28Pushed 5y ago1 watchersCompare

[ Source](https://github.com/the-toster/composer-version)[ Packagist](https://packagist.org/packages/the-toster/composer-version)[ Docs](https://github.com/the-toster/composer-version)[ RSS](/packages/the-toster-composer-version/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (9)Used By (0)

Composer version plugin
=======================

[](#composer-version-plugin)

Add NPM-like version commands to composer It uses git tags to store version information

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

[](#installation)

```
composer global require the-toster/composer-version

```

Usage
-----

[](#usage)

```
$ composer version 0.0.1
0.0.1
$ composer version patch
0.0.2
$ composer version minor
0.1.0
$ composer version major
1.0.0

```

What it does
------------

[](#what-it-does)

```
composer version get
# parse `git describe` to get version numbers (major.minor.patch) from latest tag

composer version 1.0.1
# creates new annotated tag: `git tag 1.0.1 -a "Version 1.0.1"`

composer version minor
# use `git describe` to extract current version,
# increments minor: 1.0.1 -> 1.1.0
# creates new annotated tag 1.1.0

# and so on
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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

Recently: every ~104 days

Total

8

Last Release

1845d ago

Major Versions

1.0.3 → 2.0.02020-03-01

2.0.2 → 3.0.02021-04-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/62257854467f165e1ec97a01abf9999a603eca22a0345e9af7d33c1cf7413975?d=identicon)[the-toster](/maintainers/the-toster)

---

Top Contributors

[![the-toster](https://avatars.githubusercontent.com/u/22966096?v=4)](https://github.com/the-toster "the-toster (12 commits)")

---

Tags

semverversionbumpnpm-version

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/the-toster-composer-version/health.svg)

```
[![Health](https://phpackages.com/badges/the-toster-composer-version/health.svg)](https://phpackages.com/packages/the-toster-composer-version)
```

###  Alternatives

[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)[z4kn4fein/php-semver

Semantic Versioning library for PHP. It implements the full semantic version 2.0.0 specification and provides ability to parse, compare, and increment semantic versions along with validation against constraints.

251.5M17](/packages/z4kn4fein-php-semver)[jelix/version

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

13193.0k4](/packages/jelix-version)[melbahja/semver

PHP Semantic Versioning Parser and Comparator

2122.1k5](/packages/melbahja-semver)

PHPackages © 2026

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