185

GitHub - Korri/composer-version: Cli toot that increments composer.json file ver...

 6 years ago
source link: https://github.com/korri/composer-version
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Composer-version

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.

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

composer global require korri/composer-version

Then add ~/.composer/vendor/bin/ to your $PATH if it is not already there.

Testing

Run test suite

composer install # Install dev dependencies
composer test

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK