jumoshen / ding-bot
此包最新版本(0.1)没有提供许可证信息。
向dingding群聊发送消息
0.1
2019-08-02 09:13 UTC
Requires
- php: >=5.3
- guzzlehttp/guzzle: ^6.3
Requires (Dev)
- guzzlehttp/guzzle: ^6.3
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2024-09-04 20:01:00 UTC
README
向dingding群聊发送消息
环境要求
- php >= 7.1.3
- laravel >= 5.5
安装
composer require jumoshen/ding-bot:^0.1
使用
<?php use DingBot\Services\DingBotService; use Psr\Http\Message\MessageInterface; #text文本 (new DingBotService('your access_token'))->text('这是个测试', [], function(MessageInterface $result){ # do your callback }); #markdown (new DingBotService(''))->markdown('- title', [], function(MessageInterface $result){ # do your callback });