Using a git repo as a composer repository

by | Dec 23, 2019 | IT Tips, Linux Tools | 0 comments

So here is the link so I don't forget it

https://getcomposer.org/doc/05-repositories.md#vcs

Add your repo's URL into your composer.json in the repositories key and change the version on the original repo name to your dev-* version where * is a branch of your github repo (4.0.1-alpha). Then specify "dev-4.0.1-alpha" as the version

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  "repositories": [
    {
      "type": "vcs",
    }
  ],
  "require": {
    "php": ">=5.5.9",
    "cakephp/cakephp": "~3.2",
    "mobiledetect/mobiledetectlib": "2.*",
    "cakephp/migrations": "~1.0",
    "cakephp/plugin-installer": "*",
    "twbs/bootstrap": "^4.0.0",
    "holt59/cakephp3-bootstrap-helpers": "dev-4.0.1-alpha"
  }
}

Refs:

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.