PHPackages                             elegasoft/product-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. elegasoft/product-version

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

elegasoft/product-version
=========================

Package for managing the semver for the repository

v0.0.1(3y ago)028MITPHPPHP ^7.4|^8.0

Since Dec 20Pushed 3y ago1 watchersCompare

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

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

Laravel Product Version Bumper
==============================

[](#laravel-product-version-bumper)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c8f0010ede90c9e662280489bf33a8a004748bb76975c04441276435d88e5c2d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656c656761736f66742f70726f647563742d76657273696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/elegasoft/product-version)[![Total Downloads](https://camo.githubusercontent.com/fe35d6d9ac1c25018ce3934310af8074300d8d8b434204f958450e7a35080d86/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656c656761736f66742f70726f647563742d76657273696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/elegasoft/product-version)[![GitHub Actions](https://github.com/elegasoft/product-version/actions/workflows/main.yml/badge.svg)](https://github.com/elegasoft/product-version/actions/workflows/main.yml/badge.svg)

A package to display the latest git tag version and will also allow you to easily and/or programmatically bump the major, minor and patch tags for the repository.

```
# Basic Semver Looks Like:
{major}.{minor}.{patch}
```

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

[](#installation)

You can install the package via composer:

```
composer require elegasoft/product-version
```

Usage (Command Line/Console)
----------------------------

[](#usage-command-lineconsole)

To see the current semver version of the repository

```
php artisan product-version:current

# Output Example: v1.0.3-125-0ca4a7187
```

The default is to bump the patch version of the semver

```
# Starting with: v1.0.3-125-0ca4a7187

php artisan product-version:bump

# Output Example: v1.0.4-125-0ca4a7187
```

To bump the major semver version of the repository

```
# Starting with: v1.0.3-125-0ca4a7187

php artisan product-version:bump --major

# Output Example: v2.0.0-125-0ca4a7187
```

To bump the minor semver version of the repository

```
# Starting with: v1.0.3-125-0ca4a7187

php artisan product-version:bump --minor

# Output Example: v1.1.0-125-0ca4a7187
```

Usage (Programmatic)
--------------------

[](#usage-programmatic)

To see the current semver version of the repository

```
ProductVersion::current();

// Output Example: v1.0.3-125-0ca4a7187
```

The default is to bump the patch version of the semver

```
// Starting w: v1.0.3-125-0ca4a7187

ProductVersion::bump();

// Output Example: v1.0.4-125-0ca4a7187
```

To bump the major semver version of the repository

```
// Starting w: v1.0.3-125-0ca4a7187

ProductVersion::bump($major = true, $minor = false);

// Output Example: v2.0.0-125-0ca4a7187
```

To bump the minor semver version of the repository

```
// Starting w: v1.0.3-125-0ca4a7187

ProductVersion::bump($major = false, $minor = true);

// Output Example: v1.1.0-125-0ca4a7187
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Jason Cook](https://github.com/elegasoft)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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

1237d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

elegasoftproduct-version

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/elegasoft-product-version/health.svg)

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

###  Alternatives

[wnx/laravel-stats

Get insights about your Laravel Project

1.8k1.8M7](/packages/wnx-laravel-stats)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M211](/packages/illuminate-pipeline)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)[mrmarchone/laravel-auto-crud

Laravel Auto CRUD helps you streamline development and save time.

28711.8k2](/packages/mrmarchone-laravel-auto-crud)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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