Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zacksleo/yii2-gitlab-error-behavior
send error to gitlab for yii
https://github.com/zacksleo/yii2-gitlab-error-behavior
gitlab yii2 yii2-behaviors yii2-extension yii2-gitlab-error
Last synced: 2 months ago
JSON representation
send error to gitlab for yii
- Host: GitHub
- URL: https://github.com/zacksleo/yii2-gitlab-error-behavior
- Owner: zacksleo
- License: mit
- Created: 2017-03-22T04:50:31.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-25T02:19:44.000Z (over 7 years ago)
- Last Synced: 2024-09-27T14:21:00.204Z (3 months ago)
- Topics: gitlab, yii2, yii2-behaviors, yii2-extension, yii2-gitlab-error
- Language: PHP
- Size: 21.5 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# yii2-gitlab-error-behavior
send error to gitlab for yii[![Latest Stable Version](https://poser.pugx.org/zacksleo/yii2-gitlab-error-behavior/version)](https://packagist.org/packages/zacksleo/yii2-gitlab-error-behavior)
[![Total Downloads](https://poser.pugx.org/zacksleo/yii2-gitlab-error-behavior/downloads)](https://packagist.org/packages/zacksleo/yii2-gitlab-error-behavior)
[![StyleCI](https://styleci.io/repos/85786180/shield)]()
[![Build Status](https://travis-ci.org/Graychen/yii2-gitlab-error-behavior.svg?branch=master)](https://travis-ci.org/Graychen/yii2-gitlab-error-behavior)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Graychen/yii2-gitlab-error-behavior/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/Graychen/yii2-gitlab-error-behavior/?branch=master)
[![Code Coverage](https://scrutinizer-ci.com/g/Graychen/yii2-gitlab-error-behavior/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/Graychen/yii2-gitlab-error-behavior/?branch=master)
[![Code Climate](https://img.shields.io/codeclimate/github/Graychen/yii2-gitlab-error-behavior.svg)]()
[![Build Status](https://scrutinizer-ci.com/g/Graychen/yii2-gitlab-error-behavior/badges/build.png?b=master)](https://scrutinizer-ci.com/g/Graychen/yii2-gitlab-error-behavior/build-status/master)## Usage
### Install By Composer
```
composer require zacksleo/yii2-gitlab-error-behavior --prefer-dist
```### set component
```
'errorHandler' => [
'errorAction' => 'site/error',
],```
### set behavior in SiteControllerset apiRoot, privateToken and projectName
```
public function behaviors()
{
return [
'behaviors' => [
'class' => ErrorBehavior::className(),
'apiRoot' => 'http://gitlab.com/api/v3/',
'privateToken' => 'privateToken',
'projectName' => 'demo/project'
]
];
}
```## Screenshot
![](http://ww1.sinaimg.cn/large/675eb504gy1fe0mhspoo6j212706vabc.jpg)