ichhabrecht/composer-git-flow-plugin

This plugin allows to use repositories using the Git Flow workflow (or any other branching model) with Composer

Installs: 5 141

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 4

Open Issues: 0

Type:composer-plugin

2.1.0 2016-08-14 14:03 UTC

This package is auto-updated.

Last update: 2024-11-11 14:09:23 UTC


README

This plugin allows to use repositories using the Git Flow workflow (or any other branching model) with Composer.

Installation

First you have to require the plugin.

$ composer require ichhabrecht/composer-git-flow-plugin

Usage

To define the repositories for which the plugin should change the used branch, it is necessary to require those with dev-master constraint.

{
  "repositories": [
    {
      "type": "vcs",
      "url": "[path-to-your-repository]"
    }
  ],
  "require": {
    "vendor/package": "dev-master"
  }
}

To select the branch your repositories should use, you have to call the composer command git-flow-update which makes sure only repositories with dev-master dependency constraints are updated. To specify the branch prefix use the option stability of the command.

$ composer git-flow-update --stability develop

If you want to checkout your repositories with the latest release branch you can simply set the stability to release. The plugin searches for any available branch with the stability prefix with a fallback to master branch if no other suitable branch was found.