qingzhi0508/wechat-robot

qiye-wechat notify
18
Install
composer require qingzhi0508/wechat-robot
Latest Version:1.2.1
PHP:>=5.6
License:MIT
Last Updated:Jun 17, 2020
Links: GitHub  ·  Packagist
Maintainer: crushway

基于 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

Related Packages

morozovsk/websocket

simple php websocket server with examples and demo: simple chat (single daemon)...

17,946 364
morozovsk/yii2-websocket

simple php websocket server with examples and demo: simple chat (single daemon)...

15,351 94
awz/wechat-note

基于wechat的便笺程序

14 0
overtrue/socialite

A collection of OAuth 2 packages that extracts from laravel/socialite.

5,736,437 1,376