luisalberto / gitlab
Automate GitLab via a simple and powerful API.
dev-main
2022-06-11 14:18 UTC
Requires
- php: >=7.4
- ext-json: *
- guzzlehttp/guzzle: ~7.4
Requires (Dev)
- phpunit/php-code-coverage: >=6.0.7
- phpunit/phpunit: >=9.2
This package is auto-updated.
Last update: 2025-04-12 01:35:51 UTC
README
Automate GitLab via a simple and powerful API.
Requirements
- GitLab version 14.7 or greater
- PHP version 7.4 or greater
Install
composer require luisalberto/gitlab:dev-main
Usage
<?php
require_once(dirname( __FILE__ ) . '/vendor/autoload.php');
$client = new \GitLab\Client([
'debug' => true,
'headers' => [
'PRIVATE-TOKEN' => 'your-private-token'
]
]);
$projects = new \GitLab\Projects\Projects($client);
$response = $projects->getProject(12345678);
echo $response->getBody()->getContents();
License
See LICENSE for the full license text.