• <small id='CQW2A'></small><noframes id='CQW2A'>

      <bdo id='CQW2A'></bdo><ul id='CQW2A'></ul>

      <tfoot id='CQW2A'></tfoot>

      1. <legend id='CQW2A'><style id='CQW2A'><dir id='CQW2A'><q id='CQW2A'></q></dir></style></legend>
        <i id='CQW2A'><tr id='CQW2A'><dt id='CQW2A'><q id='CQW2A'><span id='CQW2A'><b id='CQW2A'><form id='CQW2A'><ins id='CQW2A'></ins><ul id='CQW2A'></ul><sub id='CQW2A'></sub></form><legend id='CQW2A'></legend><bdo id='CQW2A'><pre id='CQW2A'><center id='CQW2A'></center></pre></bdo></b><th id='CQW2A'></th></span></q></dt></tr></i><div id='CQW2A'><tfoot id='CQW2A'></tfoot><dl id='CQW2A'><fieldset id='CQW2A'></fieldset></dl></div>
      2. 是否可以使用 Composer 从 Gitlab 上的存储库中安装包?

        Is it possible to install a package from a repository on Gitlab using Composer?(是否可以使用 Composer 从 Gitlab 上的存储库中安装包?)

        <tfoot id='5bb9C'></tfoot>

            <tbody id='5bb9C'></tbody>
                <bdo id='5bb9C'></bdo><ul id='5bb9C'></ul>

                1. <i id='5bb9C'><tr id='5bb9C'><dt id='5bb9C'><q id='5bb9C'><span id='5bb9C'><b id='5bb9C'><form id='5bb9C'><ins id='5bb9C'></ins><ul id='5bb9C'></ul><sub id='5bb9C'></sub></form><legend id='5bb9C'></legend><bdo id='5bb9C'><pre id='5bb9C'><center id='5bb9C'></center></pre></bdo></b><th id='5bb9C'></th></span></q></dt></tr></i><div id='5bb9C'><tfoot id='5bb9C'></tfoot><dl id='5bb9C'><fieldset id='5bb9C'></fieldset></dl></div>

                  <small id='5bb9C'></small><noframes id='5bb9C'>

                  <legend id='5bb9C'><style id='5bb9C'><dir id='5bb9C'><q id='5bb9C'></q></dir></style></legend>

                  本文介绍了是否可以使用 Composer 从 Gitlab 上的存储库中安装包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试让 composer 从我在 Gitlab 上的存储库中下载一个库,但是它没有 composer.json 文件,所以我不确定这是否可行.

                  I am trying to get composer to download a library from my repository on Gitlab, however, it does not have a composer.json file in it so I'm not sure if this is possible.

                      "require": {
                          "username/repository-name"
                      },
                      "repositories": [{
                          "type": "package",
                          "package": {
                              "version": "dev-master",
                              "name": "username/repository-name",
                              "source": {
                                  "url": "https://gitlab.com/username/repository.git",
                                  "type": "git",
                                  "reference": "master"
                              }
                          }
                      }],
                  

                  推荐答案

                  我找到了答案,它在这里对我有用(最后一个答案,不是接受的答案):

                  I found the answer and it works for me here (the last answer, not the accepted answer):

                  使用 Composer 和私有存储库在 GIthub 上使用构建服务器上的 VCS

                  这就是我让它起作用的原因:

                  This is what I make it works:

                      "repositories": [
                        {
                          "type": "package",
                          "package": {
                            "name": "username/repository",
                            "version": "0.1.0",
                            "type": "package",
                            "source": {
                                "url": "git@gitlab.com:username/repository.git",
                                "type": "git",
                                "reference": "master"
                            }
                          }
                        }
                      ],
                      "require": {           
                          "username/repository": "*"
                      },
                  

                  这篇关于是否可以使用 Composer 从 Gitlab 上的存储库中安装包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  PHP Upload File Validation(PHP 上传文件验证)
                  PHP Error - Uploading a file(PHP 错误 - 上传文件)
                  How can I write tests for file upload in PHP?(如何在 PHP 中编写文件上传测试?)
                  php resizing image on upload rotates the image when i don#39;t want it to(php在上传时调整图像大小会在我不想要它时旋转图像)
                  How to send additional data using PLupload?(如何使用 PLupload 发送附加数据?)
                  change button text in js/ajax after mp4 =gt;mp3 conversion in php(在 php 中的 mp4 =gt;mp3 转换后更改 js/ajax 中的按钮文本)

                    1. <small id='tCdCQ'></small><noframes id='tCdCQ'>

                        <legend id='tCdCQ'><style id='tCdCQ'><dir id='tCdCQ'><q id='tCdCQ'></q></dir></style></legend>
                      • <i id='tCdCQ'><tr id='tCdCQ'><dt id='tCdCQ'><q id='tCdCQ'><span id='tCdCQ'><b id='tCdCQ'><form id='tCdCQ'><ins id='tCdCQ'></ins><ul id='tCdCQ'></ul><sub id='tCdCQ'></sub></form><legend id='tCdCQ'></legend><bdo id='tCdCQ'><pre id='tCdCQ'><center id='tCdCQ'></center></pre></bdo></b><th id='tCdCQ'></th></span></q></dt></tr></i><div id='tCdCQ'><tfoot id='tCdCQ'></tfoot><dl id='tCdCQ'><fieldset id='tCdCQ'></fieldset></dl></div>
                          <tbody id='tCdCQ'></tbody>
                        • <bdo id='tCdCQ'></bdo><ul id='tCdCQ'></ul>
                          <tfoot id='tCdCQ'></tfoot>