Use PHP composer to clone git repo

后端 未结 8 1161
难免孤独
难免孤独 2020-11-30 16:57

I\'m trying to use composer to automatically clone a git repository from github that isn\'t in packagist but it\'s not working and I can\'t figure out what am I doing wrong.

8条回答
  •  时光取名叫无心
    2020-11-30 17:34

    If you want to use a composer.json from GitHub you would look at this example (under the VCS section).

    The package section is for packages that do not have the composer.json. However, you didn't follow that example as well or it would also have worked. Do read what it says about package repositories:

    Basically, you define the same information that is included in the composer repository's packages.json, but only for a single package. Again, the minimum required fields are name, version, and either of dist or source.

提交回复
热议问题