sado729/project-version

Laravel Project Version Automatically Increase

1.0.4 2023-07-30 08:52 UTC

This package is auto-updated.

Last update: 2025-06-29 02:17:21 UTC


README

The package automatically updates the version of your project based on the changes you make on git. Versioning is marked as "major.minor.patch". The patch value increases with each file change you make. If a new file is added, the minor part is incremented and the patch is reset.

Installation

composer require sado729/project-version

After

php artisan vendor:publish --provider="Sado729\ProjectVersion\ProjectVersionServiceProvider"

to publish the Assets and Config. After that, you need to edit the configuration file (config/project-version.php) according to your project. In the git_repository_name section, you need to enter the name of your project's github repository

Usage

To use the package, you must first have an informations table with a version column. If not, you can create it with the following command:

php artisan migrate

Everything is ready! You should run the following command instead of issuing the git pull command. At this time, the git pull command is automatically executed and the version is changed:

php artisan git:pull

image

License

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

More from me