PHPackages                             oscar-ol/laravel-app-versioning - 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. oscar-ol/laravel-app-versioning

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

oscar-ol/laravel-app-versioning
===============================

App versioning commands for Laravel

v5.0.0(1y ago)314.1k↓52.2%MITPHPPHP ^8.2

Since Dec 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/oscar-ol/laravel-app-versioning)[ Packagist](https://packagist.org/packages/oscar-ol/laravel-app-versioning)[ Docs](https://github.com/oscar-ol/laravel-app-versioning)[ RSS](/packages/oscar-ol-laravel-app-versioning/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (7)Dependencies (5)Versions (10)Used By (0)

App versioning commands for Laravel
===================================

[](#app-versioning-commands-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/00d2ec7e56a8fc34ddc51897f6779eafb560d3890ee95ee6b0772c28e809d077/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f736361722d6f6c2f6c61726176656c2d6170702d76657273696f6e696e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/oscar-ol/laravel-app-versioning)[![Total Downloads](https://camo.githubusercontent.com/46fdee16b3253b6eceb001f0be98f9d6c02572cf8ed6f0ba82e1827f4c185608/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f736361722d6f6c2f6c61726176656c2d6170702d76657273696f6e696e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/oscar-ol/laravel-app-versioning)

This package provides a set of commands to manage the version of your Laravel application.

It is based on the [Semantic Versioning](https://semver.org/) specification.

It uses Semantic versioning helper library [PHLAK/SemVer](https://github.com/PHLAK/SemVer) created by Chris Kankiewicz (@PHLAK)

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

[](#installation)

You can install the package via composer:

```
composer require oscar-ol/laravel-app-versioning
```

Publish the version.json file
-----------------------------

[](#publish-the-versionjson-file)

```
php artisan vendor:publish --provider="OscarOl\LaravelAppVersioning\LaravelAppVersioningServiceProvider" --tag="laravel-app-versioning"
```

Usage
-----

[](#usage)

### Increment the version

[](#increment-the-version)

```
php artisan version:increment-major         // v1.2.3 -> v2.0.0
php artisan version:increment-minor         // v1.2.3 -> v1.3.0
php artisan version:increment-patch         // v1.2.3 -> v1.2.4
php artisan version:increment-pre-release   // v1.2.3-alpha.5 -> v1.2.4-alpha.6
```

### Set (override) the version or individual values

[](#set-override-the-version-or-individual-values)

```
php artisan version:set 1.2.3               // v1.2.3
php artisan version:set-major 2                 // v1.2.3 -> v2.0.0
php artisan version:set-minor 3                 // v1.2.3 -> v1.3.0
php artisan version:set-patch 4                 // v1.2.3 -> v1.2.4
php artisan version:set-pre-release alpha.1     // v1.2.3 -> v1.2.3-alpha.1
php artisan version:set-build 123               // v1.2.3 -> v1.2.3+123
```

### Show the version

[](#show-the-version)

```
php artisan version:show                    // v1.2.3
```

### Get the Version class inside your code

[](#get-the-version-class-inside-your-code)

```
// it returns an instance of PHLAK\SemVer\Version with the current version
Illuminate\Support\Facades\App::make('version');
// or
app()->make('version');

// Print the version
echo app()->make('version')->__toString();  // 1.2.3
```

### 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)

- [Oscar Orta](https://github.com/oscar-ol)
- [Chris Kankiewicz](https://github.com/PHLAK) for the [PHLAK/SemVer](https://github.com/PHLAK/SemVer) library

License
-------

[](#license)

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

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance44

Moderate activity, may be stable

Popularity29

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

Recently: every ~207 days

Total

9

Last Release

438d ago

Major Versions

v1.0.0 → v2.0.02022-12-24

v1.0.1 → v3.0.02023-04-04

v3.0.0 → v4.0.02024-03-29

v4.0.0 → v5.0.02025-04-21

PHP version history (4 changes)v1.0.0PHP ^7.4|^8.0

v2.0.0PHP ^8.0

v3.0.0PHP ^8.1

v4.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/3d7ed9b824944d014c0081d5e22e265e6ffdf79506fe1279674ca32553d6b777?d=identicon)[oscar-ol](/maintainers/oscar-ol)

---

Top Contributors

[![oscar-ol](https://avatars.githubusercontent.com/u/16516316?v=4)](https://github.com/oscar-ol "oscar-ol (15 commits)")

---

Tags

oscar-ollaravel-app-versioning

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/oscar-ol-laravel-app-versioning/health.svg)

```
[![Health](https://phpackages.com/badges/oscar-ol-laravel-app-versioning/health.svg)](https://phpackages.com/packages/oscar-ol-laravel-app-versioning)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M282](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.6M375](/packages/illuminate-redis)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)

PHPackages © 2026

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