philpm / yii2-dingtalk-robot
使用钉钉群聊机器人做为target
0.0.2
2019-07-08 10:05 UTC
Requires
- php: >=5.6.0
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2025-03-08 22:41:54 UTC
README
使用钉钉机器人api作为yii2-log的target
Installation
1. 使用composer require安装
php composer.phar require --prefer-dist philpm/yii2-dingtalk-robot "0.0.1"
2. 添加依赖到composer.json文件
"philpm/yii2-dingtalk-robot": "0.0.1"
Usage
.... 'components' => [ 'log' => [ 'targets' => [ [ 'class' => 'phil\dingtalk\Target', 'levels' => ['error', 'warning'], 'categories' => ['api', 'app'], 'except' => [ 'yii\web\HttpException:404', ], ], ] ....
Testing
TODO