简体   繁体   中英

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

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM