PHP code example of jrschumacher / silex-provider-gitlab

1. Go to this page and download the library: Download jrschumacher/silex-provider-gitlab 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/ */

    

jrschumacher / silex-provider-gitlab example snippets

 php

use Silex\Application;

$url = 'http://gitlab.example.com/api/v3';
$key = 'key';

$app = new Application();
$app->register(new GitlabServiceProvider(), array(
    "gitlab.url" => $url,
    "gitlab.key" => $key
));

$app['gitlab']->api('projects')->show();