2017 © Pedro Peláez
 

library wechat-ent

Laravel微信企业号开发包

image

dizzying/wechat-ent

Laravel微信企业号开发包

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 25 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

wechat

安装

环境要求:PHP >= 5.3.0, (*1)

使用 composer, (*2)

composer require stoneworld/wechat:dev-master, (*3)

手动安装 下载 本安装包, (*4)

然后引入根目录的autoload.php即可:, (*5)

<?php

require "wechat/autoload.php"; // 路径请修改为你具体的实际路径

...
确认你没装 laravel-debugbar!!!!

使用

基本使用(以服务端为例):, (*6)

<?php

use Stoneworld\Wechat\Server;

$options = array(
            'token'=>'stoneworld1992',   //填写应用接口的Token
            'encodingaeskey'=>'o1wze3492xoUVIc9ccTLJczO3BQ5pLfiHcKwtDEdqM9',//填写加密用的EncodingAESKey
            'appid'=>'wx8ac123b21f53dera7',  //填写高级调用功能的appid
            'appsecret'=>'4ZDHIETJ6e0oENlEkRhYwdKcPcRjCkgQkuHtQTJ12ZhWHESowrJqS9', //填写高级调用功能的密钥
            'agentid'=>'5', //应用的id
        );

$server = new Server($options);

$server->on('message', function($message){
    return "您好!";
});

// 您可以直接echo 或者返回给框架
echo $server->server();

更多请参考文档wiki。, (*7)

致谢

特别感谢超哥 安正超 @overtrue 的 EasyWeChat 微信 SDK 为企业微信 SDK 开发带来的指引。, (*8)

License

MIT, (*9)

The Versions

23/01 2017

dev-master

9999999-dev https://github.com/dizzying

Laravel微信企业号开发包

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel wechat qywechat

07/03 2016

2.0

2.0.0.0 https://github.com/stoneworld

微信企业号

  Sources   Download

MIT

The Requires

 

The Development Requires

wechat