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)312.9k↓21.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 1mo 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

41

—

FairBetter than 89% of packages

Maintenance47

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

392d 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

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[illuminate/pipeline

The Illuminate Pipeline package.

9346.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[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)

PHPackages © 2026

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