PHP code example of hcesrl / gitlab-composer
1. Go to this page and download the library: Download hcesrl/gitlab-composer library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hcesrl / gitlab-composer example snippets
$packages = new \GitLabComposer\Packages( 'https://gitlab.example.com/api/v4/', 'some_access_token' );
$packages->setCachePath ( __DIR__ . '/../cache' );
$packages->addGroup ( 'group1', 'group2' );
$packages->addProject ( 'group1/foo', 'group2/bar', 'group2/foobar' );
$packages->render();