A Laravel package for managing application versioning.
You can install the package via composer:
composer require creacoon/laravel-app-versioningAfter installing, publish the configuration file:
php artisan vendor:publish --provider="Creacoon\AppVersioning\VersionManagerServiceProvider" --tag="config"// Using the facade
use Creacoon\AppVersioning\Facades\VersionManager;
$version = VersionManager::getCurrentVersion();
// Using the command
php artisan version// Using the facade
use Creacoon\AppVersioning\Facades\VersionManager;
VersionManager::setVersion('1.2.3');
// Using the command
php artisan version 1.2.3The package will:
- Update the version in your config file
- Update the runtime configuration
- Update your CHANGELOG.md file
- Create a git commit with the changes
- Create a git tag for the new version
You can customize the package behavior by modifying the config/version-manager.php file.
The MIT License (MIT). Please see License File for more information.