User defined GitHub warehouse of composer in yii2

Time:2021-1-19

Column backup: https://www.bestyii.com/topic/32
Now there are more cool open source projects. Some extensions still depend on each other. Sometimes they are changed temporarily, and there is no need to go through the package release process. The solution is simple:

  1. Clone the original library and modify the code
  2. Release a new version
  3. composer.json Map the library to your own GitHub address

  "repositories": {
    "0": {
      "type": "composer",
      "url": "https://asset-packagist.org"
    },
    "github": {
      "type": "vcs",
      "url": "https://github.com/GrazioX/markdown-latex"
    },
    "packagist": {
      "type": "composer",
      "url": "https://mirrors.aliyun.com/composer/"
    }
  }