chison/wechat

微信公众号API.

dev-master 2017-05-08 02:20 UTC

This package is not auto-updated.

Last update: 2024-04-05 17:15:18 UTC


README

Total Downloads License

代码阶段(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');

更多说明