PHPackages                             yiiauth/gitlab - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. yiiauth/gitlab

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

yiiauth/gitlab
==============

GitLab OAuth2 for yii2-authclient

2.0.0(5y ago)33.6k3[1 issues](https://github.com/yiiauth/gitlab/issues)[1 PRs](https://github.com/yiiauth/gitlab/pulls)MITPHPPHP ~7.3 || 8.0

Since May 11Pushed 2y ago1 watchersCompare

[ Source](https://github.com/yiiauth/gitlab)[ Packagist](https://packagist.org/packages/yiiauth/gitlab)[ Docs](http://github.com/yiiauth/gitlab)[ RSS](/packages/yiiauth-gitlab/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

yiiauth/gitlab
==============

[](#yiiauthgitlab)

This extension adds GitLab OAuth2 supporting for [yii2-authclient](https://github.com/yiisoft/yii2-authclient).

[![Latest Stable Version](https://camo.githubusercontent.com/b31b554f8cafb55f752c5138ead50e0dfcf968aba5df86d3cc3478e3569211a1/68747470733a2f2f706f7365722e707567782e6f72672f796969617574682f6769746c61622f762f737461626c65)](https://packagist.org/packages/yiiauth/vk)[![Total Downloads](https://camo.githubusercontent.com/f8bf9b2a3d33637ee40a7e3c7a47a3dd9603b9beca7a89f3d12054f5791774ac/68747470733a2f2f706f7365722e707567782e6f72672f796969617574682f6769746c61622f646f776e6c6f616473)](https://packagist.org/packages/yiiauth/gitlab)[![Monthly Downloads](https://camo.githubusercontent.com/b3f75c1a19321e8aa7eb8d6dbf6aaee2f575e3307550436bc40a5e86ccdf77e6/68747470733a2f2f706f7365722e707567782e6f72672f796969617574682f6769746c61622f642f6d6f6e74686c79)](https://packagist.org/packages/yiiauth/gitlab)[![License](https://camo.githubusercontent.com/f156bf04eb2963a08806fab52fa2b57ab07bad1221fcf8aead84f9986f1dc309/68747470733a2f2f706f7365722e707567782e6f72672f796969617574682f6769746c61622f6c6963656e7365)](https://packagist.org/packages/yiiauth/gitlab)

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require yiiauth/gitlab

```

or add

```
"yiiauth/gitlab": "~0.1"
```

to the `require` section of your composer.json.

Usage
-----

[](#usage)

You must read the yii2-authclient [docs](https://github.com/yiisoft/yii2/blob/master/docs/guide/security-auth-clients.md)

Register your application [in GitLab](https://gitlab.com/profile/applications)

and add the GitLab client to your auth clients.

```
'components' => [
    'authClientCollection' => [
        'class' => yii\authclient\Collection::class,
        'clients' => [
               'gitlab' => [
                   'class' => \yiiauth\gitlab\GitLabClient::class,
                   'domain'  => 'https://gitlab.com',
                   'clientId' => 'gitlab_client_id',
                   'clientSecret' => 'gitlab_client_secret',
               ],
            // other clients
        ],
    ],
    // ...
 ]
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity69

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

Total

2

Last Release

1942d ago

Major Versions

v1.0 → 2.0.02021-01-22

PHP version history (2 changes)v1.0PHP ^7.0

2.0.0PHP ~7.3 || 8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9e92b6ee31e63ba56754db82b0fe82106c4e766dd161a0fd6c59cc4acaa23bd5?d=identicon)[exileed](/maintainers/exileed)

---

Top Contributors

[![exileed](https://avatars.githubusercontent.com/u/942898?v=4)](https://github.com/exileed "exileed (5 commits)")[![Aradiv](https://avatars.githubusercontent.com/u/764172?v=4)](https://github.com/Aradiv "Aradiv (3 commits)")[![ganigeorgiev](https://avatars.githubusercontent.com/u/8248071?v=4)](https://github.com/ganigeorgiev "ganigeorgiev (2 commits)")[![SOHELAHMED7](https://avatars.githubusercontent.com/u/6770119?v=4)](https://github.com/SOHELAHMED7 "SOHELAHMED7 (1 commits)")

---

Tags

gitlabgitlab-oauth2oauth2-clientyii2-authclientyii2-extensionoauthgitlabyii2authclient

### Embed Badge

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

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

###  Alternatives

[kotchuprik/yii2-instagram-authclient

Instagram extenion for using via yii2-authclient

2048.5k](/packages/kotchuprik-yii2-instagram-authclient)[budyaga/yii2-users

Module for manage users and their rights with the support of registration through social services and assigned to each user more than one social service.

409.1k](/packages/budyaga-yii2-users)

PHPackages © 2026

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