Lightweight library to update package version according Semantic Versioning. Aditionally can create git tag, commit and push
composer require luiscoms/release dev-master
Let's consider the composer.json
file
{
"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