2017 © Pedro Peláez
 

project wechat

The Lumen Framework for wechat.

image

hanson/wechat

The Lumen Framework for wechat.

  • Thursday, September 1, 2016
  • by hanson
  • Repository
  • 1 Watchers
  • 12 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 14 % Grown

The README.md

wechat

A wechat Application build on lumen, (*1)

此项目已废弃,请移步:https://github.com/Hanson/laravel-admin-wechat, (*2)

此项目基于lumen以及easywechat开发的微信项目, (*3)

*注意:如使用laravel,可使用 wechat-handler, (*4)

Installation

composer create-project hanson/wechat wechat dev-master

Configure

配置env,填写好需要的wechat信息即可, (*5)

cp .env.example .env

Migration

暂时提供两个表,wechat_user以及message,执行migrate即可生成数据表, (*6)

php artisan migrate

Handler

所有消息事件都位于app/Handlers中,事件Handler位于app/Handlers/EventHandlers中, (*7)

Service

所有的服务事件,直接在继承BaseController 的 Controller中 调用 $this->service即可, (*8)

#example:
class MyController extends BaseController{

    public function index(){
        $user = $this->user;
        echo $user->get('openid')->nickname;
    }
}

The Versions

01/09 2016

dev-master

9999999-dev

The Lumen Framework for wechat.

  Sources   Download

MIT

The Requires

 

The Development Requires

framework lumen wechat