eom-plus / laravel-version
Version management package for Laravel
v1.0.5
2024-12-27 18:54 UTC
Requires
- php: ^7.3|^8.0
- laravel/framework: ^11.31
Requires (Dev)
- phpunit/phpunit: ^11.0.1
This package is auto-updated.
Last update: 2025-02-27 19:22:35 UTC
README
This is a SemVer compatible version management package for any software built on Laravel.
Getting Started
1. Install
Run the following command:
composer require eom-plus/laravel-version
Usage
init
php artisan version:init
set new version
Set new version using semver format, eg 1.0.0
php artisan version <newversion>
increment version patch/min/major
Increment version number
php artisan version [ patch | minor | major ]
commit release to git
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.
helpers
- version() , returns current version
- codename(), return current codename
Changelog
Please see Releases for more information what has changed recently.
Contributing
Pull requests are more than welcome. You must follow the PSR coding standards.
Security
If you discover any security related issues, please send us an email to oss@operativeit.es instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see LICENSE for more information.