• <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 上的存储库中安装包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)

                    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>