zeichen32/gitlabapi

此包已被废弃,不再维护。作者建议使用 m4tthumphrey/php-gitlab-api 包。

Gitlab api php 封装

0.1.1 2013-02-25 16:36 UTC

This package is auto-updated.

Last update: 2020-04-29 12:01:56 UTC


README

PHP 库,方便访问 gitlab api。

此库目前处于开发阶段,因此没有稳定版本可供使用。

如果您正在寻找稳定库,请查看: https://github.com/m4tthumphrey/php-gitlab-api

使用方法

    $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());