PHPackages                             syntatis/version-cli - 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. [CLI &amp; Console](/categories/cli)
4. /
5. syntatis/version-cli

ActiveLibrary[CLI &amp; Console](/categories/cli)

syntatis/version-cli
====================

A simple PHP CLI tool for working with SemVer version strings

v0.2.0(4mo ago)3636MITPHPPHP ^7.4 || ^8.0CI passing

Since Jul 30Pushed 4mo agoCompare

[ Source](https://github.com/syntatis/version-cli-php)[ Packagist](https://packagist.org/packages/syntatis/version-cli)[ RSS](/packages/syntatis-version-cli/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (17)Versions (4)Used By (0)

1️⃣ version-cli-php
===================

[](#1️⃣-version-cli-php)

[![CI](https://github.com/syntatis/version-cli-php/actions/workflows/ci.yml/badge.svg)](https://github.com/syntatis/version-cli-php/actions/workflows/ci.yml)

This is a simple command-line tool built with PHP that helps you work with [SemVer (Semantic Versioning)](https://semver.org/) strings. You can use it to check if a version string is valid, compare two versions to see which one is greater, or increase a version by major, minor, or patch levels.

Requirements
------------

[](#requirements)

- PHP 7.4 or higher
- Composer

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

[](#installation)

You can install it globally or locally using Composer:

```
composer global require syntatis/version-cli
```

Or, use as a development dependency in your project:

```
composer require --dev syntatis/version-cli
```

Usage
-----

[](#usage)

If you run it globally, you can use the `version` command directly in your terminal:

```
version --help
```

If you installed it locally in your project, run it using the vendor binary:

```
vendor/bin/version --help
```

The command provides several options to work with version strings:

  Command Description Usage    `validate` Validates the given version string against the SemVer specification. `version validate 1.0.0`   `increment` Increments the version string by major, minor, or patch. `version increment 1.0.0`   `gt` Compares two version strings to see if the first is greater than the second. `version gt 1.0.0 0.9.0`   `lt` Compares two version strings to see if the first is less than the second. `version lt 1.0.0 0.9.0`   `eq` Compares two version strings to see if they are equal. `version eq 1.0.0 1.0.0`  The command supports both patterns with or without the `v` prefix, so you can use `1.0.0` or `v1.0.0`. For more details on each command, you can run:

```
version list
```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance74

Regular maintenance activity

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

Top contributor holds 96.2% 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 ~144 days

Total

2

Last Release

148d ago

### Community

Maintainers

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

---

Top Contributors

[![tfirdaus](https://avatars.githubusercontent.com/u/2067467?v=4)](https://github.com/tfirdaus "tfirdaus (50 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")

---

Tags

clicomposer-packagesemverversionclisemverversion

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/syntatis-version-cli/health.svg)

```
[![Health](https://phpackages.com/badges/syntatis-version-cli/health.svg)](https://phpackages.com/packages/syntatis-version-cli)
```

###  Alternatives

[nunomaduro/collision

Cli error handling for console/command-line PHP applications.

4.6k331.8M8.5k](/packages/nunomaduro-collision)[nunomaduro/termwind

It's like Tailwind CSS, but for the console.

2.5k239.8M286](/packages/nunomaduro-termwind)[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)[laminas/laminas-cli

Command-line interface for Laminas projects

563.7M54](/packages/laminas-laminas-cli)[mahocommerce/maho

Free and open source ecommerce platform, created in 2024 on the M1 platform, PHP 8.3+

1322.1k12](/packages/mahocommerce-maho)

PHPackages © 2026

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