2017 © Pedro Peláez
 

library gitlab-api

image

mcmatters/gitlab-api

  • Tuesday, January 9, 2018
  • by MCMatters
  • Repository
  • 1 Watchers
  • 1 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 8 % Grown

The README.md

GitLab API PHP client

Installation

composer require mcmatters/gitlab-api

Usage

<?php

declare(strict_types = 1);

require 'vendor/autoload.php';

$client = new \McMatters\GitlabApi\GitlabClient('URL', 'TOKEN');

// You can use one of the fifth resource contexts:
// 1. Groups
// 2. Projects
// 3. Standalone
// 4. Users
// 5. Templates
// Each of them you can find on https://gitlab.com/help/api/api_resources.md
$epics = $client->group()->epic()->list(1);
$mergeRequests = $client->project()->mergeRequest()->list(1);
$queueMetrics = $client->standalone()->sidekiqMetric()->queueMetrics();
$starredProjects = $client->user()->project()->listStarred(1);
$dockerTemplates = $client->template()->dockerfile()->list();

The Versions

09/01 2018

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

by Dmitry Borzyonok