PHPackages                             mikolaykorniat/php-gitlab-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. mikolaykorniat/php-gitlab-api

AbandonedLibrary[API Development](/categories/api)

mikolaykorniat/php-gitlab-api
=============================

GitLab API client (Forked from m4tthumphrey/php-gitlab-api)

9.6.1(8y ago)04.4k2MITPHPPHP ^5.6 || ^7.0

Since Jun 18Pushed 6y ago1 watchersCompare

[ Source](https://github.com/MikolayKorniat/php-gitlab-api)[ Packagist](https://packagist.org/packages/mikolaykorniat/php-gitlab-api)[ Docs](https://github.com/m4tthumphrey/php-gitlab-api)[ RSS](/packages/mikolaykorniat-php-gitlab-api/feed)WikiDiscussions new-master Synced 3d ago

READMEChangelog (5)Dependencies (10)Versions (42)Used By (0)

A PHP wrapper for use with the [Gitlab API](https://github.com/gitlabhq/gitlabhq/tree/master/doc/api).
======================================================================================================

[](#a-php-wrapper-for-use-with-the-gitlab-api)

[![Build Status](https://camo.githubusercontent.com/eeed2c3d2f8f293ec78f1eea11f1260df769367ddd628a673cecea6e88501e10/68747470733a2f2f7472617669732d63692e6f72672f6d34747468756d70687265792f7068702d6769746c61622d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/m4tthumphrey/php-gitlab-api)

Based on [php-github-api](https://github.com/m4tthumphrey/php-github-api) and code from [KnpLabs](https://github.com/KnpLabs/php-github-api).

Installation
------------

[](#installation)

Install Composer

```
$ curl -sS https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer

```

Add the following to your require block in composer.json config. Note: be careful when using the `dev-master` tag as this may have unexpected results depending on your version of Gitlab. See the Versioning section below for more information.

```
"m4tthumphrey/php-gitlab-api": "dev-master"

```

Include Composer's autoloader:

```
require_once dirname(__DIR__).'/vendor/autoload.php';
```

Versioning
----------

[](#versioning)

From the 6.0 stable release of Gitlab, I shall now be matching the client version with the Gitlab version. For example when Gitlab 6.1 is released I will release version 6.1.0 of the API client. If I need to make future updates to the client before the next API version is released. I will simply use a 3th build version. For example `6.1.1`, `6.1.2` etc. It is recommended that you keep your composer file up to date depending on what version of Gitlab you are currently running. So if you are using 6.0, you should required `6.0.*`; 6.1 should be `6.1.*` etc etc.

General API Usage
-----------------

[](#general-api-usage)

```
$client = new \Gitlab\Client('http://git.yourdomain.com/api/v3/'); // change here
$client->authenticate('your_gitlab_token_here', \Gitlab\Client::AUTH_URL_TOKEN); // change here

$project = $client->api('projects')->create('My Project', array(
  'description' => 'This is a project',
  'issues_enabled' => false
));
```

Model Usage
-----------

[](#model-usage)

You can also use the library in an object oriented manner.

```
$client = new \Gitlab\Client('http://git.yourdomain.com/api/v3/'); // change here
$client->authenticate('your_gitlab_token_here', \Gitlab\Client::AUTH_URL_TOKEN); // change here
```

Creating a new project

```
$project = \Gitlab\Model\Project::create($client, 'My Project', array(
  'description' => 'This is my project',
  'issues_enabled' => false
));

$project->addHook('http://mydomain.com/hook/push/1');
```

Creating a new issue

```
$project = new \Gitlab\Model\Project(1, $client);
$issue = $project->createIssue('This does not work..', array(
  'description' => 'This doesnt work properly. Please fix',
  'assignee_id' => 2
));
```

Closing that issue

```
$issue->close();
```

You get the idea! Take a look around and please feel free to report any bugs.

Framework Integrations
----------------------

[](#framework-integrations)

- **Symfony** -
- **Laravel** -

If you have integrated GitLab into a popular PHP framework let us know!

Contributing
------------

[](#contributing)

There are many parts of Gitlab that I have not added to this as it was originally created for personal use, hence the lack of tests. Feel free to fork and add new functionality and tests, I'll gladly accept decent pull requests.

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 69.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~58 days

Recently: every ~145 days

Total

39

Last Release

2499d ago

Major Versions

0.7.1 → 6.0.02013-08-28

6.9.1 → 7.8.02015-02-23

7.15.0 → 8.0.x-dev2017-06-06

v4.x-dev → 9.0.0-beta12017-08-03

PHP version history (2 changes)0.6.0PHP &gt;=5.3.2

v4.x-devPHP ^5.6 || ^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/2cedc7cc6a9e6f1cb1b4d13d1454b8395dfd1389fe3fb37b5878c8fba3cce070?d=identicon)[MykolaiKorniat](/maintainers/MykolaiKorniat)

---

Top Contributors

[![m4tthumphrey](https://avatars.githubusercontent.com/u/582971?v=4)](https://github.com/m4tthumphrey "m4tthumphrey (149 commits)")[![jubianchi](https://avatars.githubusercontent.com/u/327237?v=4)](https://github.com/jubianchi "jubianchi (11 commits)")[![radutopala](https://avatars.githubusercontent.com/u/647137?v=4)](https://github.com/radutopala "radutopala (9 commits)")[![MujibAzizi](https://avatars.githubusercontent.com/u/1754708?v=4)](https://github.com/MujibAzizi "MujibAzizi (4 commits)")[![VBeytok](https://avatars.githubusercontent.com/u/46049489?v=4)](https://github.com/VBeytok "VBeytok (4 commits)")[![EdwinHoksberg](https://avatars.githubusercontent.com/u/6866019?v=4)](https://github.com/EdwinHoksberg "EdwinHoksberg (3 commits)")[![shulard](https://avatars.githubusercontent.com/u/482993?v=4)](https://github.com/shulard "shulard (3 commits)")[![aaa2000](https://avatars.githubusercontent.com/u/163941?v=4)](https://github.com/aaa2000 "aaa2000 (2 commits)")[![benmag](https://avatars.githubusercontent.com/u/4386560?v=4)](https://github.com/benmag "benmag (2 commits)")[![CSchulz](https://avatars.githubusercontent.com/u/1520593?v=4)](https://github.com/CSchulz "CSchulz (2 commits)")[![davidkuridza](https://avatars.githubusercontent.com/u/953796?v=4)](https://github.com/davidkuridza "davidkuridza (2 commits)")[![greppy](https://avatars.githubusercontent.com/u/317399?v=4)](https://github.com/greppy "greppy (2 commits)")[![MykolaiKorniat](https://avatars.githubusercontent.com/u/18246109?v=4)](https://github.com/MykolaiKorniat "MykolaiKorniat (2 commits)")[![schneidermichal](https://avatars.githubusercontent.com/u/2735984?v=4)](https://github.com/schneidermichal "schneidermichal (2 commits)")[![sschwarz](https://avatars.githubusercontent.com/u/286421?v=4)](https://github.com/sschwarz "sschwarz (2 commits)")[![egon0](https://avatars.githubusercontent.com/u/2273316?v=4)](https://github.com/egon0 "egon0 (1 commits)")[![vetruvet](https://avatars.githubusercontent.com/u/149282?v=4)](https://github.com/vetruvet "vetruvet (1 commits)")[![quentin-st](https://avatars.githubusercontent.com/u/1551971?v=4)](https://github.com/quentin-st "quentin-st (1 commits)")[![davefarthing](https://avatars.githubusercontent.com/u/2674417?v=4)](https://github.com/davefarthing "davefarthing (1 commits)")[![vinkla](https://avatars.githubusercontent.com/u/499192?v=4)](https://github.com/vinkla "vinkla (1 commits)")

---

Tags

apigitlab

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mikolaykorniat-php-gitlab-api/health.svg)

```
[![Health](https://phpackages.com/badges/mikolaykorniat-php-gitlab-api/health.svg)](https://phpackages.com/packages/mikolaykorniat-php-gitlab-api)
```

###  Alternatives

[m4tthumphrey/php-gitlab-api

GitLab API v4 client for PHP

9485.4M64](/packages/m4tthumphrey-php-gitlab-api)[jolicode/slack-php-api

An up to date PHP client for Slack's API

2534.4M12](/packages/jolicode-slack-php-api)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[darthsoup/php-whmcs-api

WHMCS API client for PHP

2317.3k4](/packages/darthsoup-php-whmcs-api)[dhope0000/lxd

PHP-based API wrapper for LXD REST API.

136.2k](/packages/dhope0000-lxd)[apigee/apigee-client-php

Client library for connecting to the Apigee Edge API.

27558.7k3](/packages/apigee-apigee-client-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
