https://github.com/akaunting/laravel-version
Version management package for Laravel
https://github.com/akaunting/laravel-version
akaunting laravel php version version-manager
Last synced: 3 months ago
JSON representation
Version management package for Laravel
- Host: GitHub
- URL: https://github.com/akaunting/laravel-version
- Owner: akaunting
- License: mit
- Created: 2017-08-24T08:04:09.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T09:19:52.000Z (almost 3 years ago)
- Last Synced: 2025-09-30T20:59:12.219Z (3 months ago)
- Topics: akaunting, laravel, php, version, version-manager
- Language: PHP
- Homepage: https://akaunting.com
- Size: 8.79 KB
- Stars: 39
- Watchers: 8
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Version management package for Laravel
[](https://github.com/akaunting/laravel-version)
[](https://styleci.io/repos/101269981)
[](LICENSE.md)
This is a [SemVer](http://semver.org) compatible version management package for any software built on Laravel.
## Getting Started
### 1. Install
Run the following command:
```bash
composer require akaunting/laravel-version
```
### 2. Register (for Laravel < 5.5)
Register the service provider in `config/app.php`
```php
Akaunting\Version\Provider::class,
```
Add alias if you want to use the facade.
```php
'Version' => Akaunting\Version\Facade::class,
```
### 3. Publish
Publish config file.
```bash
php artisan vendor:publish --tag=version
```
### 4. Configure
You can change the version information of your app from `config/version.php` file
## Usage
### version($method = null)
You can either enter the method like `version('short')` or leave it empty so you could firstly get the instance then call the methods like `version()->short()`
## Changelog
Please see [Releases](../../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 email security@akaunting.com instead of using the issue tracker.
## Credits
- [Denis Duliçi](https://github.com/denisdulici)
- [All Contributors](../../contributors)
## License
The MIT License (MIT). Please see [LICENSE](LICENSE.md) for more information.