PHP code example of zeichen32 / gitlabapi

1. Go to this page and download the library: Download zeichen32/gitlabapi 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/ */

    

zeichen32 / gitlabapi example snippets


    $browser = new \Buzz\Browser();
    $client = new \GitLab\Client($browser, 'your-key', 'http://your-gitlab-server.com');

    // Api calls
    var_dump($client->api('user')->getUsers());
    var_dump($client->api('issues')->getIssues());


    // The Alternative way
    $issue_api = new \GitLab\Api\IssueApi($client);
    var_dump($issue_api->getIssues());