Composer require branch name

后端 未结 2 885
既然无缘
既然无缘 2020-12-04 14:48

For example I want to require:

{
  \"repositories\": [
    {
      \"type\": \"git\",
      \"url\": \"https://github.com/google/google-api-php-client.git\"
         


        
2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-04 15:25

    You need to prefix all dev branches (= non tagged) by dev-.

    To install the branch you need, use:

    composer require google/apiclient:dev-v1-master
    

    See composer docs.

提交回复
热议问题