1. Go to this page and download the library: Download longdaihai/dingdinglog 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/ */
use longdaihai\ding\DingBot;
class Dingding extends DingBot
{
public function __construct()
{
parent::__construct([
'webhook' => 'https://oapi.dingtalk.com/robot/send?access_token=3707d61374a8c4369ddbeae8eedbf93a1772379dee6d75a8f66951e5fc6a8523'
]);
}
}
$ding = new Dingding();
$res = $ding->text("1111111111");
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.