itcats / ding-ding-robot
钉钉机器人,通知,报警,机器人,webhook
dev-master
2019-11-26 07:52 UTC
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2024-09-26 18:10:10 UTC
README
钉钉机器人webhook
使用方法:
include_once 'vendor/autoload.php'; /** * 必填 * 钉钉机器人的webhook地址 */ $web_hook = ''; /** * 选填 * 需要被通知人的手机号(可在钉钉上查看) */ $at_mobiles = array(); /** * 选填 * 是否全部被@,默认为true */ $is_at_all = true; $robot = new Itcats\DingtalkSDK\Dingtalk($web_hook); $txt = 'hello itcats!'; $robot->sendTextMsg($txt);