release icon indicating copy to clipboard operation
release copied to clipboard

PHP library to increment package version and release project

Release

Latest Stable Version Latest Unstable Version Build Status Coverage Status SensioLabsInsight

Lightweight library to update package version according Semantic Versioning. Aditionally can create git tag, commit and push

Installation

composer require luiscoms/release dev-master

Usage

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