2017 © Pedro Peláez
 

composer-plugin multi-repo-composer

Plugin for loading multi-repository packages (several packages in the only repository).

image

andkirby/multi-repo-composer

Plugin for loading multi-repository packages (several packages in the only repository).

  • Friday, July 14, 2017
  • by andkirby
  • Repository
  • 1 Watchers
  • 3 Stars
  • 850 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 25 Versions
  • 0 % Grown

The README.md

Multi-package repository for Composer

Gitter This repository contains multi-package composer repository and GitLab repository for composer., (*1)

Released v0.9.x. It supports generating "dist" config for packages. Satis may provide links to archives., (*2)

Requirements

Package Name

You have to name your packages by name format: vendor/my_repo-package_name Where package_name - your namespace in GIT., (*3)

Naming

Please be aware "-" is namespace separator in first case. A package with name me/foo-cool_package-second_edition will produce a multi-repo directory:, (*4)

me/foo-multi-repo

foo - is a base repository name in this example., (*5)

That's why you SHOULD NOT use "-" in the name spaces., (*6)

Branch Name and Tag Name

Branch and tag should have a namespace like PackageName/branch. Examples:, (*7)

PackageName/master
PackageName/develop
PackageName/some-another-branch
PackageName/v1.0.0
PackageName/1.0.0-beta

Single GIT repository in vendor

If you require several packages from your multi-repository it will create the one with GIT (if you use vcs). The name by example is vendor/myrepo-multi-repo. Ie your general repository name + -multi-repo. It's just to avoid clone a repository several times., (*8)

Satis

andkirby/satis is modified version of composer/satis with supporting multi-repositories., (*9)

GIT Flow

You may follow GIT Flow., (*10)

Configuring

Default multi repositories path

Actually multi-repositories will be placed in the repositories cache directory:, (*11)

~/.composer/cache/repo/your-vendor/your_project-multi-repo

Custom multi-repositories directory

But you may customize it via root configuration below:, (*12)

{
  "extra":
    "multi-repo-parent-dir": "/path/to/multi-repo/dirs/"
}

Current vendor multi-repositories directory

Also you may use saving in the current vendor directory., (*13)

{
  "extra":
    "multi-repo-dir-in-cache": false
}

It will have following structure:, (*14)

./
  composer.json
  vendor/
    your-vendor/
      your_project-cool_package/
      your_project-multi-repo/

GitFlow

Probably it would be useful to switch a namespace in GitFlow quickly. Try to use composer package rikby/gitext, (*15)

Manual way

Create a file .git-flow-namespace-set.sh, (*16)

vim ~/.git-flow-namespace-set.sh

```shell, (*17)

!/bin/sh

git config gitflow.branch.master "$1"/master git config gitflow.branch.develop "$1"/develop git config gitflow.prefix.feature "$1"/feature/ git config gitflow.prefix.bugfix "$1"/bugfix/ git config gitflow.prefix.release "$1"/release/ git config gitflow.prefix.hotfix "$1"/hotfix/ git config gitflow.prefix.support "$1"/support/ git config gitflow.prefix.versiontag "$1"/v, (*18)

And then add an alias
```shell
git config --global alias.flow-namespace-set '!bash ~/.git-flow-namespace-set.sh'

Now you may use it:, (*19)

git flow-namespace-set ModuleName

The Versions

14/07 2017

dev-master

9999999-dev

Plugin for loading multi-repository packages (several packages in the only repository).

  Sources   Download

MIT

The Requires

  • composer-plugin-api ^1.0.0

 

The Development Requires

14/07 2017

v0.9.3

0.9.3.0

Plugin for loading multi-repository packages (several packages in the only repository).

  Sources   Download

MIT

The Requires

  • composer-plugin-api ^1.0.0

 

The Development Requires

13/07 2017

v0.9.2

0.9.2.0

Plugin for loading multi-repository packages (several packages in the only repository).

  Sources   Download

MIT

The Requires

  • composer-plugin-api ^1.0.0

 

The Development Requires

13/07 2017

v0.9.1

0.9.1.0

Plugin for loading multi-repository packages (several packages in the only repository).

  Sources   Download

MIT

The Requires

  • composer-plugin-api ^1.0.0

 

The Development Requires

08/09 2016

v0.9.0

0.9.0.0

Plugin for loading multi-repository packages (several packages in the only repository).

  Sources   Download

MIT

The Requires

  • composer-plugin-api ^1.0.0

 

The Development Requires

16/06 2016

v0.8.1

0.8.1.0

Plugin for loading multi-repository packages (several packages in the only repository).

  Sources   Download

MIT

The Requires

  • composer-plugin-api ^1.0.0

 

The Development Requires

16/06 2016

v0.8.1-alpha.2

0.8.1.0-alpha2

Plugin for loading multi-repository packages (several packages in the only repository).

  Sources   Download

MIT

The Requires

  • composer-plugin-api ^1.0.0

 

The Development Requires

25/02 2016

v0.8.1-alpha.1

0.8.1.0-alpha1

Plugin for loading multi-repository packages (several packages in the only repository).

  Sources   Download

MIT

The Requires

  • composer-plugin-api ^1.0.0

 

The Development Requires

25/02 2016

v0.8.1-alpha

0.8.1.0-alpha

Plugin for loading multi-repository packages (several packages in the only repository).

  Sources   Download

MIT

The Requires

  • composer-plugin-api ^1.0.0

 

The Development Requires

25/02 2016

v0.8.0

0.8.0.0

Plugin for loading multi-repository packages (several packages in the only repository).

  Sources   Download

MIT

The Requires

  • composer-plugin-api ^1.0.0

 

The Development Requires

25/02 2016

v0.7.0

0.7.0.0

  Sources   Download

MIT

The Requires

  • composer-plugin-api ^1.0.0

 

The Development Requires

24/08 2015

v0.6.0

0.6.0.0

  Sources   Download

MIT

The Requires

  • composer-plugin-api 1.0.0

 

The Development Requires

12/08 2015

v0.5.1p.2

0.5.1.0-patch2

  Sources   Download

MIT

The Requires

  • composer-plugin-api 1.0.0

 

The Development Requires

12/08 2015

v0.5.1p.1

0.5.1.0-patch1

  Sources   Download

MIT

The Requires

  • composer-plugin-api 1.0.0

 

The Development Requires

11/08 2015

v0.5.1

0.5.1.0

  Sources   Download

MIT

The Requires

  • composer-plugin-api 1.0.0

 

The Development Requires

05/08 2015

v0.5.0

0.5.0.0

  Sources   Download

MIT

The Requires

  • composer-plugin-api 1.0.0

 

The Development Requires

05/08 2015

v0.4.0

0.4.0.0

  Sources   Download

MIT

The Requires

  • composer-plugin-api 1.0.0

 

The Development Requires

05/08 2015

v0.3.2

0.3.2.0

  Sources   Download

MIT

The Requires

  • composer-plugin-api 1.0.0

 

The Development Requires

19/02 2015

v0.3.1

0.3.1.0

  Sources   Download

MIT

The Requires

  • composer-plugin-api 1.0.0

 

19/02 2015

v0.3.0

0.3.0.0

  Sources   Download

MIT

The Requires

  • composer-plugin-api 1.0.0

 

19/01 2015

v0.2.2

0.2.2.0

  Sources   Download

MIT

The Requires

  • composer-plugin-api 1.0.0

 

17/01 2015

v0.2.1

0.2.1.0

  Sources   Download

MIT

The Requires

  • composer-plugin-api 1.0.0

 

15/01 2015

v0.2.0

0.2.0.0

  Sources   Download

MIT

The Requires

  • composer-plugin-api 1.0.0

 

14/01 2015

v0.1.1

0.1.1.0

  Sources   Download

MIT

The Requires

  • composer-plugin-api 1.0.0

 

13/01 2015

v0.1.0

0.1.0.0

  Sources   Download

MIT

The Requires

  • composer-plugin-api 1.0.0