chison / wechat
微信公众号API.
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/chison/wechat
Requires
- php: >=7.0.0
- ext-redis: *
- ext-seaslog: *
- predis/predis: ~1.0
- rmccue/requests: ^1.7
This package is not auto-updated.
Last update: 2025-10-18 00:57:06 UTC
README
代码阶段(2017-5-8):目前处于功能开发中。
1、composer.json 文件配置
{
"require": {
"chison/wechat": "dev-master"
}
}
2、进入composer.json目录 安装
composer install
使用实例
1、配置文件 /config/config.php
return [ 'appid' => 'your appid', 'appsercet' => 'your appsercet', 'token' => 'your token', 'encodeKey' => 'your encodeKey', 'publicName'=> 'your publicName' ];
2、 设置 /public/index.php
use \Chison\Wechat\Engine; Engine::$config = include '../config/config.php'; Engine::$cache = new Predis\Client('tcp://redis.cis:6379?password=your password');