Skip to content

sado729/project-version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Version

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

About

A package that changes the version of the project based on the change in git

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages