PHPackages                             zacksleo/yii-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. zacksleo/yii-gitlab-error-behavior

ActiveYii2-extension

zacksleo/yii-gitlab-error-behavior
==================================

yii2 error behavior for gitlab

1.0.6(9y ago)1838MITPHP

Since Mar 30Pushed 9y ago1 watchersCompare

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

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

yii-gitlab-error-behavior
=========================

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

gitlab error behavior for yii1

[![Latest Stable Version](https://camo.githubusercontent.com/f72a37a07c387876edebe75ca837b96a3397cd0011e671985a328aa6afea085b/68747470733a2f2f706f7365722e707567782e6f72672f7a61636b736c656f2f7969692d6769746c61622d6572726f722d6265686176696f722f76657273696f6e)](https://packagist.org/packages/zacksleo/yii-gitlab-error-behavior)[![Total Downloads](https://camo.githubusercontent.com/59552617d46a9001164866c7698e3ef3b0eabdf4e3d9d362fc168ee196003aaa/68747470733a2f2f706f7365722e707567782e6f72672f7a61636b736c656f2f7969692d6769746c61622d6572726f722d6265686176696f722f646f776e6c6f616473)](https://packagist.org/packages/zacksleo/yii-gitlab-error-behavior)[![License](https://camo.githubusercontent.com/3ac1726b13d422536ebf7368a587d3a21e1757dbdc29a8bff388c1ae2331dcac/68747470733a2f2f706f7365722e707567782e6f72672f7a61636b736c656f2f7969692d6769746c61622d6572726f722d6265686176696f722f6c6963656e7365)](https://packagist.org/packages/zacksleo/yii-gitlab-error-behavior)

Usage
-----

[](#usage)

### Install By Composer

[](#install-by-composer)

```
  composer require zacksleo/yii-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 array(
            'error' => array(
                'class' => 'webroot.vendor.zacksleo.yii-gitlab-error-behavior.src.ErrorBehavior',
                'apiRoot' => 'http://gitlab.com/api/v3/',
                'privateToken' => '{privateToken}',
                'projectName' => '{demo/project}'
            )
        );
    }

    public function onBeforeAction($event)
    {
        $this->raiseEvent('onBeforeAction', $event);
    }

    public function actionError()
    {
        if ($error = Yii::app()->errorHandler->error) {
            $this->onBeforeAction(new CEvent($this));
            $this->renderPartial('error', $error);
        }
    }

```

Screenshoot
-----------

[](#screenshoot)

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

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

Established project with proven stability

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

Total

6

Last Release

3299d 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 (13 commits)")

---

Tags

gitlabyiiyii-extensionyii-gitlab-error-bahavior

### Embed Badge

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

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

###  Alternatives

[zhuravljov/yii2-debug

Yii debug toolbar

144501.1k4](/packages/zhuravljov-yii2-debug)[yiiext/migrate-command

This is an enhanced version of the Yii Database Migration Tool that adds module support and many more usefull features.

34173.8k4](/packages/yiiext-migrate-command)[koriym/dii

Dependency Injection Plugin for Yii 1

17195.8k](/packages/koriym-dii)

PHPackages © 2026

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