These are chat archives for composer/composer

10th
Jan 2018
Kongthap Thammachat
@jeud
Jan 10 2018 19:25

hi i would like to install private repo from github instead of packagist, i have setup my composer.json as below

{
  "repositories": [
    {
      "type": "package",
      "package": {
        "name": "laravel-repo",
        "version": "1.1",
        "source": {
          "url": "https://github.com/jeud/laravel-repo.git",
          "type": "git",
          "reference": "master"
        }
      }
    }
  ],
  "require": {
    "laravel-repo": "1.1"
  }
}

it's working but i'm not sure what different between defining type: packageinside repositories and type: git without type: package ?