Download the PHP package limingxinleo/x-dingtalk without Composer
On this page you can find all versions of the php package limingxinleo/x-dingtalk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package x-dingtalk
钉钉组件
自定义机器人
- 初始化
<?php use Fan\DingTalk\Application;
$config = [ // HTTP 请求的超时时间(秒) 'timeout' => 5.0, // 机器人模块 'robot' => [ 'gateways' => [ 'test' => [ 'url' => $url, ], 'test2' => [ 'url' => $url, ], ], ], ];
$ding = new Application($config);
2. 发送消息
~~~php
<?php
/** @var \Psr\Http\Message\ResponseInterface[] $res */
$res = $ding->robot->sendText('测试sendText方法', [], ['test']);
/** @var \Psr\Http\Message\ResponseInterface[] $res */
$res = $this->ding->robot->sendMarkdown(
'杭州天气',
"#### 杭州天气 @156xxxx8827\n" .
"> 9度,西北风1级,空气良89,相对温度73%\n\n" .
"> \n" .
"> ###### 10点20分发布 [天气](http://www.thinkpage.cn/) \n",
[],
['test']
);
All versions of x-dingtalk with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.3
guzzlehttp/guzzle Version ^6.3|^7.0
hyperf/utils Version ^2.0
pimple/pimple Version ^3.0
guzzlehttp/guzzle Version ^6.3|^7.0
hyperf/utils Version ^2.0
pimple/pimple Version ^3.0
The package limingxinleo/x-dingtalk contains the following files
Loading the files please wait ....