korri / composer-version
Update your package version for git managed composer packages.
Installs: 13 842
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 1
Requires
- php: ^7.0
Requires (Dev)
- mikey179/vfsstream: ~1
- phpunit/phpunit: ^6.3
README
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