In PHP & Composer How do I require a git repository with non standard branch name

风流意气都作罢 提交于 2019-12-25 04:38:08

问题


This is probably a stupid question:

I am trying to include the following library from github into my project.

PHPOffice/PHPExcel

branch name: develop_2.0.0

I would like to install it with composer and have it autoload with the rest of the libraries I am using.

The develop_ part is causing the problem.


回答1:


Nevermind, Just figured it out. Always seem to figure it out the second after I post the question.

Just prepend dev- to the branch name.

Thus: dev-develop_2.0.0



来源:https://stackoverflow.com/questions/19843446/in-php-composer-how-do-i-require-a-git-repository-with-non-standard-branch-nam

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!