2017 © Pedro Peláez
 

library php-bump-version

PHP Bump version and other GIT helpers

image

quazardous/php-bump-version

PHP Bump version and other GIT helpers

  • Friday, October 14, 2016
  • by quazardous
  • Repository
  • 1 Watchers
  • 4 Stars
  • 370 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 10 % Grown

The README.md

PHP Bump version and other GIT helpers

(c) Quazardous berliozdavid@gmail.com, (*1)

What for ?

Provides some "helper" commands for GIT users to conform with http://nvie.com/posts/a-successful-git-branching-model/., (*2)

So bump_version pays attention to GIT operations you may want to do on your master or develop branches., (*3)

It will display the GIT commands you should use to keep your branches in a correct state. In day to day use, you should just have to copy/paste these commands... It's not much but I've found it usefull and I like to share !, (*4)

bump_version assume that develop and master are correctly setup with origin for git push and git pull., (*5)

Install

composer require "quazardous/php-bump-version"

Usage

bump

A basic version bumper., (*6)

After version bumping, bump_version bump will display a list of GIT commands you should use to complete your release., (*7)

vendor/bin/bump_version bump [options]

Example to bump a minor version (like 0.1.2 to 0.1.3):, (*8)

vendor/bin/bump_version bump -p

More info on Semantic Versioning., (*9)

merge_into

Merge for the lazy one., (*10)

Displays the commands to merge the current branch to the target branch and checks if you may have to pull/push., (*11)

vendor/bin/bump_version merge_into <target> [options]

Example to merge current branch to develop branch:, (*12)

vendor/bin/bump_version merge_into develop

merge_from

Merge for the lazy one., (*13)

Displays the commands to merge the target branch into the current branch and checks if you may have to pull/push., (*14)

vendor/bin/bump_version merge_from <target> [options]

Example to merge develop branch to current branch:, (*15)

vendor/bin/bump_version merge_from develop

Config

At first use, bump_version will ask you to configure your project and will store this config in .bump-version.php., (*16)

You can edit this file, it contains some bonus options :p, (*17)

The Versions

14/10 2016

dev-master

9999999-dev

PHP Bump version and other GIT helpers

  Sources   Download

MIT

The Requires

 

by Avatar quazardous

14/10 2016

1.0.3

1.0.3.0

PHP Bump version and other GIT helpers

  Sources   Download

MIT

The Requires

 

by Avatar quazardous

08/02 2016

1.0.2

1.0.2.0

PHP Bump version and other GIT helpers

  Sources   Download

MIT

The Requires

 

by Avatar quazardous

08/02 2016

1.0.1

1.0.1.0

PHP Bump version and other GIT helpers

  Sources   Download

MIT

The Requires

 

by Avatar quazardous

06/02 2016

1.0.0

1.0.0.0

PHP Bump version and other GIT helpers

  Sources   Download

MIT

The Requires

 

by Avatar quazardous