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

ActiveLibrary[API Development](/categories/api)

baraja-core/gitlab-api
======================

Simple and robust GitLab API wrapper with Tracy debug mode.

v2.0.0(5y ago)18[3 PRs](https://github.com/baraja-core/gitlab-api/pulls)PHPPHP ^8.0

Since Oct 9Pushed 1y ago1 watchersCompare

[ Source](https://github.com/baraja-core/gitlab-api)[ Packagist](https://packagist.org/packages/baraja-core/gitlab-api)[ Docs](https://github.com/baraja-core/gitlab-api)[ RSS](/packages/baraja-core-gitlab-api/feed)WikiDiscussions master Synced today

READMEChangelog (6)Dependencies (8)Versions (13)Used By (0)

GitLab API for Nette
====================

[](#gitlab-api-for-nette)

[![Integrity check](https://github.com/baraja-core/gitlab-api/workflows/Integrity%20check/badge.svg)](https://github.com/baraja-core/gitlab-api/workflows/Integrity%20check/badge.svg)

This package serves as a transport layer between a specific application and GitLab.

With this package, you can easily submit queries to GitLab, detect error messages in the Tracy bar, and monitor request load.

Requests of type `GET` are automatically cached for `12 hours` unless told otherwise.

Requests like `POST`, `PUT`, `DELETE` and other change actions are not cached at all and we always retransmit all data.

[![GitLab Tracy panel](/src/gitlab-api-tracy.png "GitLab Tracy panel")](/src/gitlab-api-tracy.png)

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

[](#installation)

Use the Composer command:

```
composer require baraja-core/gitlab-api
```

Next, you need to set the service configuration for Nette in the NEON file.

Default minimum configuration:

```
services:
   gitLabAPI:
      factory: baraja\GitLabApi\GitLabApi(%gitLab.token%)

parameters:
   gitLab:
      token: 123-abcDEFghiJKL-789

tracy:
   bar:
      - Baraja\GitLabApi\GitLabApiPanel
```

You must always change the API token for your user account!

Configuration
-------------

[](#configuration)

In the `parameters` section, you need to enter the default API token to connect to GitLab:

Example:

```
parameters:
   gitLab:
      token: 123-abcDEFghiJKL-789
```

Optionally, you can set to use Nette Cache:

```
services:
   gitLabAPI:
      factory: baraja\GitLabApi\GitLabApi(%gitLab.token%)
      setup:
         - setCache(@cache.storage)
```

Linking to a custom GitLab installation
---------------------------------------

[](#linking-to-a-custom-gitlab-installation)

In some cases, you need to link the API to the internal corporate network where GitLab is hosted. This is done by using the `setBaseUrl()` method with a domain path.

The passed parameter can be, for example, the string `'https://gitlab.com/api/v4/'`.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 94.4% 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 ~97 days

Recently: every ~118 days

Total

6

Last Release

1916d ago

Major Versions

v1.2.1 → v2.0.02021-02-09

PHP version history (3 changes)v1.0.0PHP &gt;=7.1.0

v1.2.0PHP &gt;=7.4.0

v2.0.0PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3382204?v=4)[baraja](/maintainers/baraja)[@baraja](https://github.com/baraja)

---

Top Contributors

[![janbarasek](https://avatars.githubusercontent.com/u/4738758?v=4)](https://github.com/janbarasek "janbarasek (34 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")[![ImgBotApp](https://avatars.githubusercontent.com/u/31427850?v=4)](https://github.com/ImgBotApp "ImgBotApp (1 commits)")

---

Tags

gitlab-apigitlab-tracy-panelkonfiguracenette

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M271](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)[hubspot/api-client

Hubspot API client

23414.2M16](/packages/hubspot-api-client)

PHPackages © 2026

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