Skip to content

Latest commit

 

History

History
63 lines (54 loc) · 1.35 KB

README.md

File metadata and controls

63 lines (54 loc) · 1.35 KB

微信网关系统

基于PHP的微信网关系统,运行于nuix内核服务器(包括树莓派),使用 PHP7+SWOOLE强力驱动。

微信语音指令,支持http协议


软件支持
  • PHP7.0以上版本
  • 树莓派debian、Ubuntu、其他nuix内核系统
  • swoole 1.9X
  • 花生壳
使用方法
php server.php

程序默认端口为 8090
配置更改:server.php


安装说明
安装PHP7(至少包含mb_string拓展)

~$ sudo apt-get install php
安装swoole拓展

~$ git clone https://github.com/swoole/swoole-src.git
~$ cd swoole
~$ phpize
~$ ./configure
~$ make 
~$ sudo make install

安装花生壳

phddns start(启动)| stop(停止)| restart(重启)
需要自行注册: http://hsk.oray.com/
开通内网穿透,设置为本机ip 端口

	
~$ wget http://hsk.oray.com/download/download?id=25
~$ dpkg -i phddns_rapi_3.0.1.armhf.deb
~$ phddns start
	
安装程序
	
~$ git clone https://github.com/EthanChenLi/httpgateway.git
~$ cd httpgateway
~$ php server.php
	

更新说明: 2017.8.8

  • 新增毫秒级定时任务,支持循环周期,循环次数,手动停止,无需依赖系统定时任务。
  • 优化程序结构