This is a SemVer compatible version management package for any software built on Laravel.
Run the following command:
composer require eom-plus/laravel-version
php artisan version:init
Set new version using semver format, eg 1.0.0
php artisan version <newversion>
Increment version number
php artisan version [ patch | minor | major ]
Create and commit git tag for the current release
php artisan version commit
Create github workflow to create release automatically.
- Create directory .github/workflows in your git repository
- Copy our file .github/workflows/release.yml to your .github/workflows
- On your the next commit, a release will be created automatically.
- version() , returns current version
- codename(), return current codename
Please see Releases for more information what has changed recently.
Pull requests are more than welcome. You must follow the PSR coding standards.
If you discover any security related issues, please send us an email to [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see LICENSE for more information.