shawn805/wechat-robot

qiye-wechat notify
765 12
Install
composer require shawn805/wechat-robot
Latest Version:1.0.5
PHP:>=5.6
License:MIT
Last Updated:Oct 13, 2020
Links: GitHub  ·  Packagist
Maintainer: shawn805

安装

$ composer require shawn805/wechat-robot

使用方法

实例 
/**
  * @param string $token    必填参数
  * @param array $mobile    可选,需要@的手机号码
  * @param bool $atAll  可选,是否需要@所有人  
*/
$weChat = new WeChatRobot(string $token, array $mobile = [], bool $atAll = true);

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

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

发送文件
/**
  * @param string $path     文件路径
*/
$weChat->file(string $path);

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

License

MIT

Related Packages

seffeng/laravel-wechat

PHP laravel extension wechat

683 0
hanson/wechat

The Lumen Framework for wechat.

14 12
laravel/lumen-framework

The Laravel Lumen Framework.

27,678,725 1,510

Version History

Version Released PHP License
1.0.5 >=5.6 MIT
1.0.4 >=5.6 MIT
1.0.3 >=5.6 MIT
1.0.2 >=5.6 MIT
1.0.1 >=7.0 MIT