Download the PHP package diegoalvarezb/laravel-versioner without Composer
On this page you can find all versions of the php package diegoalvarezb/laravel-versioner. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download diegoalvarezb/laravel-versioner
More information about diegoalvarezb/laravel-versioner
Files in diegoalvarezb/laravel-versioner
Package laravel-versioner
Short Description Utility to handle project versions in Git and Laravel.
License MIT
Homepage https://github.com/diegoalvarezb/laravel-versioner
Informations about the package laravel-versioner
laravel-versioner
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.
Requirements
- PHP >= 5.6
- Laravel >= 5.0
Installation and configuration
Package installation with composer:
And add the service provider in your config/app.php
file:
The service provider will register the package commands, so you can use them with artisan.
Show current version
To show the current version you have to execute the following command:
Generate new version
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:
- MAJOR: increases the X
- MINOR: increases the Y
- PATCH: increases the Z
The command will create a new tag from master
branch, and push it to origin.
License
MIT