PHPackages                             misodrobny/application-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. misodrobny/application-versioning

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

misodrobny/application-versioning
=================================

Laravel package for application versioning in your application with ease.

0.1.1(6mo ago)1187↓92.9%1[3 PRs](https://github.com/misodrobny/application-versioning/pulls)MITPHPPHP ^8.3CI passing

Since Jun 26Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/misodrobny/application-versioning)[ Packagist](https://packagist.org/packages/misodrobny/application-versioning)[ Docs](https://github.com/misodrobny/application-versioning)[ GitHub Sponsors]()[ RSS](/packages/misodrobny-application-versioning/feed)WikiDiscussions main Synced yesterday

READMEChangelog (6)Dependencies (14)Versions (11)Used By (0)

This is my package Application versioning
=========================================

[](#this-is-my-package-application-versioning)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7174533180a7d2995d65e98dc18df42420a7515829674d71c5ebd147effd217c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d69736f64726f626e792f6170706c69636174696f6e2d76657273696f6e696e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/misodrobny/application-versioning)[![GitHub Tests Action Status](https://camo.githubusercontent.com/afc86ee97cf0b362f7b60d8096d34365aed222e5d3019981b8db335165ce8d18/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d69736f64726f626e792f6170706c69636174696f6e2d76657273696f6e696e672f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/misodrobny/application-versioning/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/cd6fab0a0f6452087296cb8942671e92df956f9adf90ffec3c27ad8aacf6fccd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d69736f64726f626e792f6170706c69636174696f6e2d76657273696f6e696e672f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/misodrobny/application-versioning/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/e2e03b47ad3b29a7c7affe0ac72f0775b079ebfab198791f67c9aa5a3e47fd79/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d69736f64726f626e792f6170706c69636174696f6e2d76657273696f6e696e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/misodrobny/application-versioning)

This package will help to manage version of your application. It will create version.yaml file in root of your project and you can manage version of your application in this file.

For more about application versioning please follow [Semantic Versioning](https://semver.org/)

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

[](#installation)

You can install the package via composer:

```
composer require misodrobny/application-versioning
```

After installation, you need to run install script which will publish config file and create default version.yaml file.

```
php artisan application-versioning:install
```

This is the contents of the published config file:

```
return [
    'version_file_path' => base_path('version.yaml'),
];
```

Initial formated version has following structure:

```
$major.$minor.$patch - $git_hash
```

`$git_hash` contains 7 characters long GIT HASH from current git commit.

Usage
-----

[](#usage)

For getting version of your application you can use facade `ApplicationVersion`

```
    echo ApplicationVersion::getFormatedVersion();
```

To increase version of your application you can use following methods:

```
    (new ApplicationVersioning)->increaseMajor();
    (new ApplicationVersioning)->increaseMinor();
    (new ApplicationVersioning)->increasePatch();
```

It is also possible to run

```
php artisan application-version:increase
```

This command will generate Laravel Prompt window for choosing which version needs update:

```
┌ Which version do you want to increase? ──────────────────────┐
│   ○ major                                                    │
│   ○ minor                                                    │
│ › ● patch                                                    │
└──────────────────────────────────────────────────────────────┘
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Michal Drobny](https://github.com/54170028+misodrobny)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance76

Regular maintenance activity

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 78.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 ~110 days

Total

6

Last Release

185d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/54170028?v=4)[Michal Drobny](/maintainers/misodrobny)[@misodrobny](https://github.com/misodrobny)

---

Top Contributors

[![misodrobny](https://avatars.githubusercontent.com/u/54170028?v=4)](https://github.com/misodrobny "misodrobny (43 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (6 commits)")

---

Tags

laravelversioningversionMichal DrobnyApplication Versioning

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/misodrobny-application-versioning/health.svg)

```
[![Health](https://phpackages.com/badges/misodrobny-application-versioning/health.svg)](https://phpackages.com/packages/misodrobny-application-versioning)
```

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M986](/packages/statamic-cms)[nativephp/mobile

NativePHP for Mobile

1.1k75.1k91](/packages/nativephp-mobile)[nativephp/desktop

NativePHP for Desktop

39742.4k8](/packages/nativephp-desktop)[wnx/laravel-backup-restore

A package to restore database backups made with spatie/laravel-backup.

213420.1k2](/packages/wnx-laravel-backup-restore)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[stephenjude/filament-feature-flags

Filament implementation of feature flags and segmentation with Laravel Pennant.

122177.8k1](/packages/stephenjude-filament-feature-flags)

PHPackages © 2026

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