Download the PHP package qiuxiang/webot without Composer
On this page you can find all versions of the php package qiuxiang/webot. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download qiuxiang/webot
More information about qiuxiang/webot
Files in qiuxiang/webot
Download qiuxiang/webot
More information about qiuxiang/webot
Files in qiuxiang/webot
Vendor qiuxiang
Package webot
Short Description wechat robot
License MIT
Homepage http://github.com/qiuxiang/webot
Package webot
Short Description wechat robot
License MIT
Homepage http://github.com/qiuxiang/webot
Keywords wechat
Please rate this library. Is it a good library?
Informations about the package webot
微信开发开发框架
Webot 旨在提供简单的方式搭建灵活的、易于扩展的微信公众平台,其灵感来自于 weixin-robot。
基本用法
添加规则
rules->add(string $pattern, mixed $handler)
回复更多形式的消息
使用函数进行处理
从 PHP、YAML 或 JSON 文件加载规则
rules.php
rules.json
rules.yml
菜单事件处理
菜单事件的处理方式与文本规则一样,只不过 $pattern
为定值的 EventKey
,并且与 $rules
区分使用 $menus
事件处理
on(string $hook, callable $callback)
$callback 会以对象形式传入依赖,其中包含了请求信息(request),和回复函数(reponse)
支持的事件列表:
- init - 初始化时运行
- event - 收到事件消息
- event.click - 菜单点击事件
- event.subscribe - 订阅事件
- event.unsubscribe - 取消订阅事件
- text - 收到文本消息
- image - 收到图片消息
- unknown.message - 未知的消息类型
- unknown.event - 未知的事件类型
All versions of webot with dependencies
PHP Build Version
Package Version
The package qiuxiang/webot contains the following files
Loading the files please wait ....