PHP code example of philpm / yii2-dingtalk-robot
1. Go to this page and download the library: Download philpm/yii2-dingtalk-robot library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
philpm / yii2-dingtalk-robot example snippets
....
'components' => [
'log' => [
'targets' => [
[
'class' => 'phil\dingtalk\Target',
'levels' => ['error', 'warning'],
'categories' => ['api', 'app'],
'except' => [
'yii\web\HttpException:404',
],
],
]
....
sh
php composer.phar