Korri/composer-version

View on GitHub
README.md

Summary

Maintainability
Test Coverage
# Composer-version
[![Build Status](https://travis-ci.org/Korri/composer-version.svg?branch=master)](https://travis-ci.org/Korri/composer-version)
[![Test Coverage](https://codeclimate.com/github/Korri/composer-version/badges/coverage.svg)](https://codeclimate.com/github/Korri/composer-version/coverage)

This is a no-dependencies `PHP ^7.1` commandline tool that helps with releasing semantically
versioned composer packages or projects, directly inspired by [npm version](https://docs.npmjs.com/cli/version).


## Usage

```
composer-version [options] <new-version> | major | minor | patch

  -h, --help Show this help text
  -f, --file Path to composer.json file, default to ./composer.json
  -p, --push Push commit and tag to remote origin
```


## Installation

```bash
composer global require korri/composer-version
```
Then add `~/.composer/vendor/bin/` to your `$PATH` if it is not already there.

## Testing

Run test suite
```bash
composer install # Install dev dependencies
composer test
```