hcesrl/gitlab-composer
, (*1)
A Composer repository index generator for your GitLab CE projects., (*2)
Installation
Install the package:, (*3)
composer require hcesrl/gitlab-composer
Usage
Create a new instance of the Packages
object with the GitLab CE Api endpoint and the access token:, (*4)
$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:, (*5)
$packages->setCachePath ( __DIR__ . '/../cache' );
$packages->addGroup ( 'group1', 'group2' );
$packages->addProject ( 'group1/foo', 'group2/bar', 'group2/foobar' );
Render the packages json file:, (*6)
$packages->render();
License
This package is open-sourced software licensed under the MIT license., (*7)
Authors