Package Data | |
---|---|
Maintainer Username: | diegoalvarezb |
Package Create Date: | 2017-01-17 |
Package Last Update: | 2017-08-31 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-19 03:16:29 |
Package Statistics | |
---|---|
Total Downloads: | 5,535 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
This tool handle project versions in Laravel and Git.
The versions are generated in Git as tags with the format vX.Y.Z
. When generating a new version, this tool gets the latest git version tag and increseases it, depending on the type of release you want to generate.
Package installation with composer:
composer require diegoalvarezb/laravel-versioner
And add the service provider in your config/app.php
file:
Diegoalvarezb\Versioner\VersionerProvider::class
The service provider will register the package commands, so you can use them with artisan.
To show the current version you have to execute the following command:
php artisan versioner:git:show
To generate a new version you have to execute the artisan command php artisan versioner:git:new
and then select the type of the release you'd like to generate. There are three realease options:
The command will create a new tag from master
branch, and push it to origin.
php artisan versioner:git:new
MIT