qingzhi0508 / wechat-hook by crushway

qiye-wechat notify
16
0
2
Package Data
Maintainer Username: crushway
Maintainer Contact: qingzhi0508@gmail.com (qingzhi)
Package Create Date: 2020-06-17
Package Last Update: 2020-06-17
Language: PHP
License: MIT
Last Refreshed: 2024-04-19 15:14:21
Package Statistics
Total Downloads: 16
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

基于 shawn805/wechat-robot 做修改

安装

composer require qingzhi0508/wechat-robot

使用方法

实例 
/**
  * @param string $token    必填参数
  * @param string $timeout    可选
  * @param string $verify    可选   
*/
$weChat = new WeChatRobot(string $token, float $timeout = 3.0, bool $verify = true);

发送文本类型
/**
  * @param string $content     消息内容
*/
$weChat->text(string $content);

markdown类型
/**
  * @param string $markdown     markdown内容
*/
$weChat->markdown(string $markdown);

图文类型
/**
  * @param array $articles     图文信息数组
*/
$articles = [
    "title" : "标题",
    "description" : "标题",
    "url" : "点击后跳转的链接",
    "picurl" : "图文消息的图片链接"  
];
$weChat->imageText($articles);

License

MIT