2017 © Pedro Peláez
 

library gitlab-api

Sdk for integration gitlab api

image

helder-garcia/gitlab-api

Sdk for integration gitlab api

  • Thursday, June 28, 2018
  • by helder-garcia
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 22 Versions
  • 0 % Grown

The README.md

#gitlab APi

Allow oAuth gitlab autorization, (*1)

Usage

Set config


<?php require __DIR__.'/../vendor/autoload.php'; $request_options = array( "base_url" => "http://gitlab.com/api/v3", "request.options" => array( "verify" => false, // basic autorisation 'auth' => array('login', 'pass'), 'query' => array( 'private_token' => 'You_secret_key' ), "oauth2" => array( "client_id" => 'CLIENT_ID', "client_secret" => 'CLIENT_SECRET', "redirect_uri" => 'REDIRECT_URL' ) ) );

request for resources


$api = new Gitlab\Api($request_options); $issues = $api->executeCommand('GetIssues'); foreach ($issues as $issue) { echo($issue->getId().' '.$issue->getTitle()).PHP_EOL; } echo 'GetIssuesByProject'.PHP_EOL; $issues = $api->executeCommand('GetIssuesByProject', array('project_id' => 10)); foreach ($issues as $issue) { echo($issue->getId().' '.$issue->getTitle()).PHP_EOL; } echo 'GetIssue'.PHP_EOL; $issue = $api->executeCommand('GetIssue', array('project_id' => 10,'issue_id'=>58)); echo($issue->getId().' '.$issue->getTitle()).PHP_EOL; $projects = $api->executeCommand('GetProjects'); foreach ($projects as $project) { /** * @var $project \Gitlab\Models\Project */ echo($project->getId() . " " . $project->getNameWithNamespace()).PHP_EOL; }

Full list command in the json allow directory /clients

The Versions

28/06 2018

dev-master

9999999-dev

Sdk for integration gitlab api

  Sources   Download

GPL-3.0-or-later

The Requires

 

by Anton Popov
by Helder Garcia

25/06 2018

0.3.8

0.3.8.0

Sdk for integration gitlab api

  Sources   Download

GPL-3.0-or-later

The Requires

 

by Anton Popov
by Helder Garcia

25/06 2018

0.3.7

0.3.7.0

Sdk for integration gitlab api

  Sources   Download

GPL-3.0-or-later

The Requires

 

by Anton Popov
by Helder Garcia

29/08 2015

0.3.5

0.3.5.0

Sdk for integration gitlab api

  Sources   Download

The Requires

 

by Anton Popov

11/06 2015

0.3.4

0.3.4.0

Sdk for integration gitlab api

  Sources   Download

The Requires

 

by Anton Popov

22/05 2015

0.3.3

0.3.3.0

Sdk for integration gitlab api

  Sources   Download

The Requires

 

by Anton Popov

06/05 2015

0.3.2

0.3.2.0

Sdk for integration gitlab api

  Sources   Download

The Requires

 

by Anton Popov

02/03 2015

0.3.1

0.3.1.0

Sdk for integration gitlab api

  Sources   Download

The Requires

 

by Anton Popov

14/02 2015

0.3.0

0.3.0.0

Sdk for integration gitlab api

  Sources   Download

The Requires

 

by Anton Popov

04/02 2015

0.2.2

0.2.2.0

Sdk for integration gitlab api

  Sources   Download

The Requires

 

by Anton Popov

31/01 2015

0.2.1

0.2.1.0

Sdk for integration gitlab api

  Sources   Download

The Requires

 

by Anton Popov

29/01 2015

0.1.2

0.1.2.0

Sdk for integration gitlab api

  Sources   Download

The Requires

 

by Anton Popov

18/01 2015

0.1.1

0.1.1.0

Sdk for integration gitlab api

  Sources   Download

The Requires

 

by Anton Popov

18/01 2015

0.0.21

0.0.21.0

Sdk for integration gitlab api

  Sources   Download

The Requires

 

by Anton Popov

18/01 2015

0.0.20

0.0.20.0

Sdk for integration gitlab api

  Sources   Download

The Requires

 

by Anton Popov

12/01 2015

0.0.19

0.0.19.0

Sdk for integration gitlab api

  Sources   Download

The Requires

 

by Anton Popov

11/12 2014

0.0.18

0.0.18.0

Sdk for integration gitlab api

  Sources   Download

The Requires

 

by Anton Popov

27/10 2014

0.0.17

0.0.17.0

Sdk for integration gitlab api

  Sources   Download

The Requires

 

by Anton Popov

27/10 2014

0.0.16

0.0.16.0

Sdk for integration gitlab api

  Sources   Download

The Requires

 

by Anton Popov

18/10 2014

0.0.15

0.0.15.0

Sdk for integration gitlab api

  Sources   Download

The Requires

 

by Anton Popov

16/10 2014

0.0.11

0.0.11.0

Sdk for integration gitlab api

  Sources   Download

The Requires

 

by Anton Popov

20/08 2014

dev-guzzle-description

dev-guzzle-description

Sdk for integration gitlab api

  Sources   Download

The Requires

 

by Anton Popov