PHPackages                             zacksleo/yii2-gitlab-error-behavior - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. zacksleo/yii2-gitlab-error-behavior

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

zacksleo/yii2-gitlab-error-behavior
===================================

yii2 error behavior for gitlab

1.0.2(9y ago)211.0k1MITPHP

Since Mar 24Pushed 8y ago1 watchersCompare

[ Source](https://github.com/zacksleo/yii2-gitlab-error-behavior)[ Packagist](https://packagist.org/packages/zacksleo/yii2-gitlab-error-behavior)[ RSS](/packages/zacksleo-yii2-gitlab-error-behavior/feed)WikiDiscussions master Synced yesterday

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

yii2-gitlab-error-behavior
==========================

[](#yii2-gitlab-error-behavior)

send error to gitlab for yii

[![Latest Stable Version](https://camo.githubusercontent.com/36cf8a4f4106eea3e54b588493de33fe12321175a70bae6e51fb1195872e2db1/68747470733a2f2f706f7365722e707567782e6f72672f7a61636b736c656f2f796969322d6769746c61622d6572726f722d6265686176696f722f76657273696f6e)](https://packagist.org/packages/zacksleo/yii2-gitlab-error-behavior)[![Total Downloads](https://camo.githubusercontent.com/a71f18370d6e7828afef4ea21b6203842c6a4bb0d1e85bd40fe15558b5bfd445/68747470733a2f2f706f7365722e707567782e6f72672f7a61636b736c656f2f796969322d6769746c61622d6572726f722d6265686176696f722f646f776e6c6f616473)](https://packagist.org/packages/zacksleo/yii2-gitlab-error-behavior)![StyleCI](https://camo.githubusercontent.com/8ec0a21b6b7dcfecba83f96297e2454a991aef5e9220b0dcd1f5582378af82d3/68747470733a2f2f7374796c6563692e696f2f7265706f732f38353738363138302f736869656c64)[![Build Status](https://camo.githubusercontent.com/f1088ff7a74f27ac9eab2b0e1c95d8d10ce6c192a78d72d92e6f823414bb8445/68747470733a2f2f7472617669732d63692e6f72672f477261796368656e2f796969322d6769746c61622d6572726f722d6265686176696f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Graychen/yii2-gitlab-error-behavior)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/322233ef673431ed66d4446aee282a6aa66b4fe3c20c051eb36e23c16b7097af/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f477261796368656e2f796969322d6769746c61622d6572726f722d6265686176696f722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Graychen/yii2-gitlab-error-behavior/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/91d584c7ed06884db9f3b48f1393fdbf79a7075283355bcf9d90752f59bc2b9a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f477261796368656e2f796969322d6769746c61622d6572726f722d6265686176696f722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Graychen/yii2-gitlab-error-behavior/?branch=master)![Code Climate](https://camo.githubusercontent.com/fe0bd3fcd1bda9d99d7429212ae5e14fa1b66e7139e569555d8985daff9178ea/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6769746875622f477261796368656e2f796969322d6769746c61622d6572726f722d6265686176696f722e737667)[![Build Status](https://camo.githubusercontent.com/bdcbc2cb5562aee84703bc5fbbeb9e782b934b343382797b14c8217b95e9c0cb/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f477261796368656e2f796969322d6769746c61622d6572726f722d6265686176696f722f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Graychen/yii2-gitlab-error-behavior/build-status/master)

Usage
-----

[](#usage)

### Install By Composer

[](#install-by-composer)

```
  composer require zacksleo/yii2-gitlab-error-behavior --prefer-dist

```

### set component

[](#set-component)

```
    'errorHandler' => [
        'errorAction' => 'site/error',
    ],

```

### set behavior in SiteController

[](#set-behavior-in-sitecontroller)

set apiRoot, privateToken and projectName

```
    public function behaviors()
    {
        return [
            'behaviors' => [
                'class' => ErrorBehavior::className(),
                'apiRoot' => 'http://gitlab.com/api/v3/',
                'privateToken' => 'privateToken',
                'projectName' => 'demo/project'
            ]
        ];
    }

```

Screenshot
----------

[](#screenshot)

[![](https://camo.githubusercontent.com/45f1f96a3e695cbae3105eae5b5e2beaa788fa448050d4df94bdb2fdef7cdc2a/687474703a2f2f7777312e73696e61696d672e636e2f6c617267652f36373565623530346779316665306d6873706f6f366a323132373036766162632e6a7067)](https://camo.githubusercontent.com/45f1f96a3e695cbae3105eae5b5e2beaa788fa448050d4df94bdb2fdef7cdc2a/687474703a2f2f7777312e73696e61696d672e636e2f6c617267652f36373565623530346779316665306d6873706f6f366a323132373036766162632e6a7067)

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 76% 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 ~13 days

Total

3

Last Release

3359d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3e97b8a6f67b09513e345a128d73a63898ae1ec9f6a6c77234c78b3f16d305d1?d=identicon)[zacksleo](/maintainers/zacksleo)

---

Top Contributors

[![zacksleo](https://avatars.githubusercontent.com/u/3369169?v=4)](https://github.com/zacksleo "zacksleo (19 commits)")[![Graychen](https://avatars.githubusercontent.com/u/4189971?v=4)](https://github.com/Graychen "Graychen (6 commits)")

---

Tags

gitlabyii2yii2-behaviorsyii2-extensionyii2-gitlab-error

### Embed Badge

![Health badge](/badges/zacksleo-yii2-gitlab-error-behavior/health.svg)

```
[![Health](https://phpackages.com/badges/zacksleo-yii2-gitlab-error-behavior/health.svg)](https://phpackages.com/packages/zacksleo-yii2-gitlab-error-behavior)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)

PHPackages © 2026

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