gitlab-composer

Gitlab Composer repository

  • 所有者: wemakecustom/gitlab-composer
  • 平台:
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Gitlab Composer repository

Small script that loops through all branches and tags of all projects in a Gitlab installation
and if it contains a composer.json, adds it to an index.

This is very similar to the behaviour of Packagist.org

See example.

Installation

  1. Run composer.phar install
  2. Copy confs/samples/gitlab.ini into confs/gitlab.ini, following instructions in comments
  3. Ensure cache is writable
  4. Change the TTL as desired (default is 60 seconds)
  5. Ensure an alias exists for /packages.json => /packages.php (.htaccess is provided)

Usage

Simply include a composer.json in your project, all branches and tags respecting
the formats for versions will be detected.

By default, the package name must be equal to the path of the project. i.e.: my-group/my-project.
This is not a design requirement, it is mostly to prevent common errors when you copy a composer.json
from another project without changing its name. To enable support for differences between package names and project
paths, set allow_package_name_mismatch to true in confs/gitlab.ini.

Then, to use your repository, add this in the composer.json of your project:

{
    "repositories": [
        {
            "type": "composer",
            "url": "http://gitlab-composer.stage.wemakecustom.com/"
        }
    ]
}

Caveats

While your projects will be protected through SSH, they will be publicly listed.
If you require protection of the package list, I suggest this reading.

Author

主要指標

概覽
名稱與所有者wemakecustom/gitlab-composer
主編程語言PHP
編程語言PHP (語言數: 1)
平台
許可證
所有者活动
創建於2013-08-22 21:18:56
推送於2018-08-06 12:10:28
最后一次提交2018-07-23 18:18:48
發布數4
最新版本名稱2.0 (發布於 )
第一版名稱v0.9 (發布於 )
用户参与
星數163
關注者數17
派生數42
提交數32
已啟用問題?
問題數13
打開的問題數4
拉請求數14
打開的拉請求數2
關閉的拉請求數7
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?