creacoon/laravel-app-versioning

A Laravel package for managing application versioning

Fund package maintenance!
creacoon

Installs: 408

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/creacoon/laravel-app-versioning

1.1.0 2025-12-09 09:29 UTC

This package is auto-updated.

Last update: 2025-12-09 09:30:24 UTC


README

A Laravel package for managing application versioning.

Installation

You can install the package via composer:

composer require creacoon/laravel-app-versioning

After installing, publish the configuration file:

php artisan vendor:publish --provider="Creacoon\AppVersioning\VersionManagerServiceProvider" --tag="config"

Usage

Getting the current version

// Using the facade
use Creacoon\AppVersioning\Facades\VersionManager;

$version = VersionManager::getCurrentVersion();

// Using the command
php artisan version

Setting a new version

// Using the facade
use Creacoon\AppVersioning\Facades\VersionManager;

VersionManager::setVersion('1.2.3');

// Using the command
php artisan version 1.2.3

The package will:

  1. Update the version in your config file
  2. Update the runtime configuration
  3. Update your CHANGELOG.md file
  4. Create a git commit with the changes
  5. Create a git tag for the new version

Configuration

You can customize the package behavior by modifying the config/version-manager.php file.

License

The MIT License (MIT). Please see License File for more information.