PHPackages                             jeroeny/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. jeroeny/gitlab-api

Abandoned → [m4tthumphrey/php-gitlab-api](/?search=m4tthumphrey%2Fphp-gitlab-api)Library[API Development](/categories/api)

jeroeny/gitlab-api
==================

GitLab API client

v10.0.3(6y ago)01.8k[1 PRs](https://github.com/Jeroeny/gitlab-api/pulls)MITPHPPHP ^7.2

Since Jun 18Pushed 6y agoCompare

[ Source](https://github.com/Jeroeny/gitlab-api)[ Packagist](https://packagist.org/packages/jeroeny/gitlab-api)[ Docs](https://github.com/jeroeny/gitlab-api)[ RSS](/packages/jeroeny-gitlab-api/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (4)Dependencies (18)Versions (47)Used By (0)

A PHP wrapper to be used with [Gitlab's API](https://github.com/gitlabhq/gitlabhq/tree/master/doc/api).
=======================================================================================================

[](#a-php-wrapper-to-be-used-with-gitlabs-api)

[![PHP version](https://camo.githubusercontent.com/6c0d56e2bcb7df3bb1ffb0d34f81fd328ebb53e2b44b49b33116cd62b8eaa12e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6a65726f656e792f6769746c61622d617069)](https://github.com/Jeroeny/gitlab-api/blob/master/composer.json)[![Build Status](https://camo.githubusercontent.com/1e0088b0165202320c64192a7e321cffe7ebcb9efb762fd1a1f3cc18a26f0a83/68747470733a2f2f7472617669732d63692e6f72672f4a65726f656e792f6769746c61622d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jeroeny/gitlab-api)[![StyleCI](https://camo.githubusercontent.com/8a76876173759b8b20a81641a7f066d5be6d373511c15a1d3db58133018cee57/68747470733a2f2f7374796c6563692e696f2f7265706f732f3231373732363339342f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/217726394)[![codecov](https://camo.githubusercontent.com/0006f28bb5fc8d151a60d295f60fc2b14bdb896728161974817a12a8e9d79030/68747470733a2f2f636f6465636f762e696f2f67682f4a65726f656e792f6769746c61622d6170692f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/Jeroeny/gitlab-api)[![Latest Stable Version](https://camo.githubusercontent.com/59cd225fe3601a1f25d0d77597727939d60730bf86ae775a8df0475598efa610/68747470733a2f2f706f7365722e707567782e6f72672f6a65726f656e792f6769746c61622d6170692f762f737461626c65)](https://packagist.org/packages/jeroeny/gitlab-api)[![Total Downloads](https://camo.githubusercontent.com/96a40fadc32a83b82a65e390ace364963f38589b9e515d945cc3f47a4a30783c/68747470733a2f2f706f7365722e707567782e6f72672f6a65726f656e792f6769746c61622d6170692f646f776e6c6f616473)](https://packagist.org/packages/jeroeny/gitlab-api)[![Latest Unstable Version](https://camo.githubusercontent.com/ff4f99abe846a81db43bf2520bb8724ffda218a137c313ecdf329e9d9fa8c729/68747470733a2f2f706f7365722e707567782e6f72672f6a65726f656e792f6769746c61622d6170692f762f756e737461626c65)](https://packagist.org/packages/jeroeny/gitlab-api)[![composer.lock](https://camo.githubusercontent.com/001d748c842c75e8a4e305b6b2eed7bfed69092917140ff1825eb5886a51467f/68747470733a2f2f706f7365722e707567782e6f72672f6a65726f656e792f6769746c61622d6170692f636f6d706f7365726c6f636b)](https://packagist.org/packages/jeroeny/gitlab-api)[![License](https://camo.githubusercontent.com/9fb1bddd9b7d3099d90cce8c81d0db5f6cac8ba4ada1a32626b8587706245be6/68747470733a2f2f706f7365722e707567782e6f72672f6a65726f656e792f6769746c61622d6170692f6c6963656e7365)](https://packagist.org/packages/jeroeny/gitlab-api)

Forked from [php-gitlab-api](https://github.com/jeroeny/gitlab-api) and 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)

Using [composer](https://getcomposer.org):

```
composer require jeroeny/gitlab-api
```

You can visit [HTTPlug for library users](http://docs.php-http.org/en/latest/httplug/users.html) to get more information about installing HTTPlug related packages.

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

[](#general-api-usage)

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

// or for OAuth2 (see https://github.com/m4tthumphrey/php-gitlab-api/blob/master/lib/Gitlab/HttpClient/Plugin/Authentication.php#L47)
$client = \Gitlab\Client::create('http://gitlab.yourdomain.com')
    ->authenticate('your_gitlab_token_here', \Gitlab\Client::AUTH_OAUTH_TOKEN)
;

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

Example with Pager
------------------

[](#example-with-pager)

to fetch all your closed issue with pagination ( on the gitlab api )

```
$client = \Gitlab\Client::create('http://git.yourdomain.com')
    ->authenticate('your_gitlab_token_here', \Gitlab\Client::AUTH_URL_TOKEN)
;
$pager = new \Gitlab\ResultPager($client);
$issues = $pager->fetchAll($client->api('issues'),'all',[null, ['state' => 'closed']]);
```

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

[](#model-usage)

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

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

# 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 doesn\'t work properly. Please fix.',
  'assignee_id' => 2
));

# Closing that issue
$issue->close();
```

You get the idea! Take a look around ([API methods](https://github.com/jeroeny/gitlab-api/tree/master/lib/Gitlab/Api), [models](https://github.com/m4tthumphrey/php-gitlab-api/tree/master/lib/Gitlab/Model)) 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)

Feel free to fork and add new functionality and/or tests, I'll gladly accept decent pull requests.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~57 days

Recently: every ~67 days

Total

43

Last Release

2318d ago

Major Versions

0.7.1 → 6.0.02013-08-28

6.9.1 → 7.8.02015-02-23

7.15.0 → 8.0.02017-06-06

8.0.0 → 9.0.0-beta12017-08-03

9.13.0 → v10.0.02019-10-27

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

9.0.0-beta1PHP ^5.6 || ^7.0

v10.0.0PHP ^7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/07bed0254086e3e9dcc77f8ad6cdf779edf1c9786db8ce77d5ee2374dbebaee0?d=identicon)[jeroeny](/maintainers/jeroeny)

---

Top Contributors

[![m4tthumphrey](https://avatars.githubusercontent.com/u/582971?v=4)](https://github.com/m4tthumphrey "m4tthumphrey (169 commits)")[![fbourigault](https://avatars.githubusercontent.com/u/1116116?v=4)](https://github.com/fbourigault "fbourigault (110 commits)")[![m1guelpf](https://avatars.githubusercontent.com/u/23558090?v=4)](https://github.com/m1guelpf "m1guelpf (23 commits)")[![Jeroeny](https://avatars.githubusercontent.com/u/1517978?v=4)](https://github.com/Jeroeny "Jeroeny (20 commits)")[![drumm](https://avatars.githubusercontent.com/u/39292?v=4)](https://github.com/drumm "drumm (18 commits)")[![tobiasetter](https://avatars.githubusercontent.com/u/24449919?v=4)](https://github.com/tobiasetter "tobiasetter (15 commits)")[![gaooulong](https://avatars.githubusercontent.com/u/128565219?v=4)](https://github.com/gaooulong "gaooulong (13 commits)")[![Artistan](https://avatars.githubusercontent.com/u/801349?v=4)](https://github.com/Artistan "Artistan (12 commits)")[![jubianchi](https://avatars.githubusercontent.com/u/327237?v=4)](https://github.com/jubianchi "jubianchi (11 commits)")[![sidneymarieanne](https://avatars.githubusercontent.com/u/23741257?v=4)](https://github.com/sidneymarieanne "sidneymarieanne (11 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (11 commits)")[![radutopala](https://avatars.githubusercontent.com/u/647137?v=4)](https://github.com/radutopala "radutopala (9 commits)")[![omarlopesino](https://avatars.githubusercontent.com/u/3202817?v=4)](https://github.com/omarlopesino "omarlopesino (9 commits)")[![violuke](https://avatars.githubusercontent.com/u/6420347?v=4)](https://github.com/violuke "violuke (7 commits)")[![gilmiriam](https://avatars.githubusercontent.com/u/26138458?v=4)](https://github.com/gilmiriam "gilmiriam (7 commits)")[![jdecool](https://avatars.githubusercontent.com/u/433926?v=4)](https://github.com/jdecool "jdecool (6 commits)")[![glaubinix](https://avatars.githubusercontent.com/u/442056?v=4)](https://github.com/glaubinix "glaubinix (6 commits)")[![laurenzgamper](https://avatars.githubusercontent.com/u/2470546?v=4)](https://github.com/laurenzgamper "laurenzgamper (5 commits)")[![moufmouf](https://avatars.githubusercontent.com/u/1290952?v=4)](https://github.com/moufmouf "moufmouf (5 commits)")[![vinkla](https://avatars.githubusercontent.com/u/499192?v=4)](https://github.com/vinkla "vinkla (5 commits)")

---

Tags

apiclientgitlabphpphp-gitlab-apiapigitlab

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/jeroeny-gitlab-api/health.svg)](https://phpackages.com/packages/jeroeny-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)[j0k3r/graby

Graby helps you extract article content from web pages

384349.6k2](/packages/j0k3r-graby)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[darthsoup/php-whmcs-api

WHMCS API client for PHP

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

PHPackages © 2026

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