PHPackages                             seretos/gitlab-client - 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. seretos/gitlab-client

ActiveLibrary[API Development](/categories/api)

seretos/gitlab-client
=====================

a client to build gitlab repositories

v0.1.5(9y ago)06MITPHPPHP &gt;=5.6

Since Jan 8Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Seretos/gitlab-client)[ Packagist](https://packagist.org/packages/seretos/gitlab-client)[ RSS](/packages/seretos-gitlab-client/feed)WikiDiscussions master Synced 4w ago

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

gitlab-client
=============

[](#gitlab-client)

[![Build Status](https://camo.githubusercontent.com/1b8a65b8e9252e0a37f551b25c21e898778094cd852603ff293eccae25a5145e/68747470733a2f2f7472617669732d63692e6f72672f53657265746f732f6769746c61622d636c69656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Seretos/gitlab-client.svg?branch=master)[![Coverage Status](https://camo.githubusercontent.com/69d7733742dbfd93dc494691614a7f77022919956ac50acca49bf92ddf6c1c95/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f53657265746f732f6769746c61622d636c69656e742f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/Seretos/gitlab-client?branch=master)

this package provide two console commands to automate creation of releases/tags with gitlab

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

[](#installation)

globally install the phar:

```
wget https://github.com/Seretos/gitlab-client/releases/download/v0.1.2/gitlab-client.phar
chmod +x gitlab-client.phar
sudo mv gitlab-client.phar /usr/local/bin/gitlab-client
```

or add the require to your composer project:

```
composer require seretos/gitlab-client
```

Usage
-----

[](#usage)

if globally installed:

```
gitlab-client list
```

or on composer installation:

```
php vendor\bin\gitlab-client list
```

build:child command
-------------------

[](#buildchild-command)

example:

```
gitlab-client build:child --server-url http://your.gitlab.api/api/v3/ --auth-token yourUserToken --repository yourRepositoryName --branch yourBranch
```

this command create new branches/tags from the given branch name.

for example. if you execute this command with the branch master, the command show which branches exists. if a branch 0 exists, the command generate a new branch 1 from master. if 1 exists, the command create the branch with name 2 and so on. if you execute this command with branch 1,2 or some one else single numeric branch, the command generate a new branch like 1.0,0.2. if you execute the command from an branch like 1.0, the command create a tag named v1.0.0 or v1.0.1...

protect:branch command:
-----------------------

[](#protectbranch-command)

example:

```
gitlab-client protect:branch --server-url http://your.gitlab.api/api/v3/ --auth-token yourUserToken --repository yourRepositoryName --branch yourBranch
```

this command set the given branch to protected.

coverage:check command:
-----------------------

[](#coveragecheck-command)

example:

```
phpunit --bootstrap vendor/autoload.php --configuration phpunit.xml.dist --coverage-clover build/logs/clover.xml
gitlab-client coverage:check --clover-file path/to/your/clover.xml --percentage 100
```

this command checks, that the code coverage is greater then the given percentage.

copy:members command:
---------------------

[](#copymembers-command)

```
gitlab-client copy:members --server-url http://your.gitlab.api/api/v3/ --auth-token yourUserToken --source-group yourSourceGroup --destination-group yourDestinationGroup
```

this command add all users which found in the source group, but not exist in the destination group

replace:readme command:
-----------------------

[](#replacereadme-command)

this command search for the following regex /?branch=(\[\\d\\w.-\]\*)/ in the readme.md of your repository-branch and change it to ?branch=yourBranch

```
gitlab-client replace:readme --server-url http://your.gitlab.api/api/v3/ --auth-token yourUserToken --repository yourRepositoryName --branch yourBranch
```

example usage in gitlab-ci.yml:
-------------------------------

[](#example-usage-in-gitlab-ciyml)

```
test:
    script:
        - phpunit --bootstrap vendor/autoload.php --configuration phpunit.xml.dist --coverage-clover build/logs/clover.xml
        - gitlab-client coverage:check --clover-file path/to/your/clover.xml --percentage 100
        - gitlab-client replace:readme --server-url http://$CI_SERVER_NAME/api/v3/ --auth-token yourToken --repository $CI_PROJECT_NAME --branch $CI_BUILD_REF_NAME
release:
    script:
        - gitlab-client protect:branch --server-url http://$CI_SERVER_NAME/api/v3/ --auth-token yourToken --repository $CI_PROJECT_NAME --branch $CI_BUILD_REF_NAME
        - gitlab-client build:child --server-url http://$CI_SERVER_NAME/api/v3/ --auth-token yourToken --repository $CI_PROJECT_NAME --branch $CI_BUILD_REF_NAME
    only:
        - /^(master|\d+(.\d+)?)$/
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~6 days

Total

7

Last Release

3421d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1956f0019585e067a8c17676304b6f9442aa9c495c81d4294f5805940ed3fd12?d=identicon)[Seretos](/maintainers/Seretos)

---

Top Contributors

[![Seretos](https://avatars.githubusercontent.com/u/18718900?v=4)](https://github.com/Seretos "Seretos (27 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/seretos-gitlab-client/health.svg)

```
[![Health](https://phpackages.com/badges/seretos-gitlab-client/health.svg)](https://phpackages.com/packages/seretos-gitlab-client)
```

###  Alternatives

[aeliot/todo-registrar

Register TODOs from source code in issue tracker

153.0k](/packages/aeliot-todo-registrar)

PHPackages © 2026

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