https://github.com/luiscoms/release
PHP library to increment package version and release project
https://github.com/luiscoms/release
Last synced: 9 months ago
JSON representation
PHP library to increment package version and release project
- Host: GitHub
- URL: https://github.com/luiscoms/release
- Owner: luiscoms
- Created: 2016-01-21T12:28:14.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-12-02T12:48:25.000Z (about 3 years ago)
- Last Synced: 2025-02-07T23:35:38.800Z (11 months ago)
- Language: PHP
- Size: 67.4 KB
- Stars: 16
- Watchers: 5
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
Release
==
[](https://packagist.org/packages/luiscoms/release) [](https://packagist.org/packages/luiscoms/release)
[](https://travis-ci.org/luiscoms/release) [](https://coveralls.io/github/luiscoms/release) [](https://insight.sensiolabs.com/projects/8e7b3800-4f6a-45a0-a06f-be3dbf6e6f96)
Lightweight library to update package version according [Semantic Versioning](http://semver.org/).
Aditionally can create git tag, commit and push
Installation
----
composer require luiscoms/release dev-master
Usage
----
Let's consider the `composer.json` file
```json
{
"version": "0.0.1",
"require": {
"luiscoms/release": "dev-master"
}
}
```
To view current version
vendor/bin/release [current]
0.0.1
To update patch
vendor/bin/release bump --patch|--bugfix
0.0.2
To update minor
vendor/bin/release bump --minor|--feature
0.1.0
To update major
vendor/bin/release bump --major
1.0.0