PHP code example of keller31 / monolog-dingding
1. Go to this page and download the library: Download keller31/monolog-dingding 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/ */
keller31 / monolog-dingding example snippets
$logger = new Logger('dingding');
$handler = new \keller31\MonologDingding\DingdingRobotHandler(Logger::ALERT,$access_token);
$logger->pushHandler($handler);
$logger->alert('你好吗!');