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.
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
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
The MIT License (MIT). Please see License File for more information.
- Visit my website MrSadiq.info