hcesrl/gitlab-composer
Composer 安装命令:
composer require hcesrl/gitlab-composer
包简介
A Composer repository index generator for your GitLab CE projects
关键字:
README 文档
README
A Composer repository index generator for your GitLab CE projects.
Installation
Install the package:
composer require hcesrl/gitlab-composer
Usage
Create a new instance of the Packages object with the GitLab CE Api endpoint and the access token:
$packages = new \GitLabComposer\Packages( 'https://gitlab.example.com/api/v4/', 'some_access_token' );
Customize the behaviour by setting a path for the cache files and a whitelist of groups and projects:
$packages->setCachePath ( __DIR__ . '/../cache' ); $packages->addGroup ( 'group1', 'group2' ); $packages->addProject ( 'group1/foo', 'group2/bar', 'group2/foobar' );
Render the packages json file:
$packages->render();
License
This package is open-sourced software licensed under the MIT license.
Authors
统计信息
- 总下载量: 109
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-03-01