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: 8 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 (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-25T02:19:44.000Z (almost 9 years ago)
- Last Synced: 2025-01-31T20:55:51.285Z (over 1 year 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
[](https://packagist.org/packages/zacksleo/yii2-gitlab-error-behavior)
[](https://packagist.org/packages/zacksleo/yii2-gitlab-error-behavior)
[]()
[](https://travis-ci.org/Graychen/yii2-gitlab-error-behavior)
[](https://scrutinizer-ci.com/g/Graychen/yii2-gitlab-error-behavior/?branch=master)
[](https://scrutinizer-ci.com/g/Graychen/yii2-gitlab-error-behavior/?branch=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 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
