2017 © Pedro Peláez
 

library wechat

微信SDK

image

beacon/wechat

微信SDK

  • Monday, November 23, 2015
  • by crab890715
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1778 Forks
  • 0 Open issues
  • 71 Versions
  • 0 % Grown

The README.md

Wechat

English, (*1)

可能是目前最优雅的微信公众平台 SDK 了。Laravel 5 拓展包: overtrue/laravel-wechat, (*2)

SDK QQ群:319502940, (*3)

微信开发者交流群:9179779, (*4)

Build Status Latest Stable Version Latest Unstable Version Build Status Scrutinizer Code Quality Total Downloads License, (*5)

网上充斥着各种微信 SDK,但是找了一圈,发现没有一个想用,因为没有满足本项目存在后的各种优点:, (*6)

  • 命名不那么乱七八糟;
  • 隐藏开发者不需要关注的细节;
  • 方法使用更优雅,不必再去研究那些奇怪的的方法名或者类名是做啥用的;
  • 自定义缓存方式;
  • 符合 PSR-4 标准,你可以各种方便的与你的框架集成;
  • 高度抽象的消息类,免去各种拼json与xml的痛苦。

安装

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

  1. 使用 composer, (*8)

    composer require "overtrue/wechat:2.1.*"
    
  2. 手动安装, (*9)

    下载 2.1版zip包 或者下载指定版本:https://github.com/overtrue/wechat/releases 。, (*10)

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

    <?php
    
    require "wechat/autoload.php"; // 路径请修改为你具体的实际路径
    
    ...
    
  3. 确认你没装 laravel-debugbar!!!!, (*12)

使用

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

<?php

use Overtrue\Wechat\Server;

$appId = 'wx3cf0f39249eb0e60';
$token = "overtrue";

$server = new Server($appId, $token);

$server->on('message', function($message){
    return "您好!欢迎关注 overtrue!";
});

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

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

文档

Wiki, (*15)

强烈建议看懂微信文档后再来使用本 SDK。, (*16)

Features

贡献代码

非常欢迎大家贡献代码共同完善本项目,烦请遵循 PSR标准 谢谢!, (*17)

License

MIT, (*18)

The Versions

23/11 2015

dev-master

9999999-dev

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

23/11 2015

2.1.25

2.1.25.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

20/11 2015

2.1.24

2.1.24.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

20/11 2015

2.1.x-dev

2.1.9999999.9999999-dev

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

18/11 2015

2.1.23

2.1.23.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

18/11 2015

2.1.22

2.1.22.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

18/11 2015

2.1.21

2.1.21.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

11/11 2015

2.1.20

2.1.20.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

10/11 2015

2.1.19

2.1.19.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

09/11 2015

2.1.18

2.1.18.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

04/11 2015

2.1.17

2.1.17.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

28/10 2015

2.1.16

2.1.16.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

24/10 2015

2.1.15

2.1.15.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

17/10 2015

2.1.14

2.1.14.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

16/10 2015

2.1.13

2.1.13.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

16/10 2015

2.1.12

2.1.12.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

16/10 2015

2.1.11

2.1.11.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

12/10 2015

2.1.10

2.1.10.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

28/09 2015

2.1.9

2.1.9.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

21/09 2015

2.1.8

2.1.8.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

18/09 2015

2.1.7

2.1.7.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

18/09 2015

2.1.6

2.1.6.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

15/09 2015

2.1.5

2.1.5.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

15/09 2015

2.1.4

2.1.4.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

14/09 2015

2.1.3

2.1.3.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

11/09 2015

2.1.2

2.1.2.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

06/09 2015

2.1.1

2.1.1.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

18/08 2015

2.0.x-dev

2.0.9999999.9999999-dev

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

18/08 2015

2.1.0

2.1.0.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

11/08 2015

2.0.35

2.0.35.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

11/08 2015

2.0.34

2.0.34.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

08/08 2015

2.0.33

2.0.33.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

08/08 2015

2.0.32

2.0.32.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

03/08 2015

2.0.31

2.0.31.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

02/08 2015

2.0.30

2.0.30.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

30/07 2015

2.0.29

2.0.29.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

19/07 2015

2.0.28

2.0.28.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

17/07 2015

2.0.27

2.0.27.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

16/07 2015

2.0.26

2.0.26.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

16/07 2015

2.0.25

2.0.25.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

15/07 2015

2.0.24

2.0.24.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

13/07 2015

2.0.23

2.0.23.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

08/07 2015

2.0.22

2.0.22.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

30/06 2015

2.0.21

2.0.21.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

13/06 2015

2.0.20

2.0.20.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

13/06 2015

2.0.19

2.0.19.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

13/06 2015

2.0.18

2.0.18.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

06/06 2015

2.1.0-alpha

2.1.0.0-alpha

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

05/06 2015

2.0.17

2.0.17.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

31/05 2015

2.0.15

2.0.15.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

25/05 2015

2.0.14

2.0.14.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

24/05 2015

2.0.13

2.0.13.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

22/05 2015

2.0.12

2.0.12.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

21/05 2015

2.0.11

2.0.11.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

21/05 2015

2.0.10

2.0.10.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

20/05 2015

2.0.9

2.0.9.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

20/05 2015

2.0.8

2.0.8.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

20/05 2015

2.0.7

2.0.7.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

18/05 2015

2.0.6

2.0.6.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

16/05 2015

2.0.5

2.0.5.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

15/05 2015

2.0.4

2.0.4.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

12/05 2015

2.0.3

2.0.3.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

12/05 2015

2.0.2

2.0.2.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

08/05 2015

2.0.1

2.0.1.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

07/05 2015

2.0.0

2.0.0.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-mcrypt *

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

24/04 2015

2.0.0-alpha

2.0.0.0-alpha

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

15/04 2015

1.0.4

1.0.4.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

10/04 2015

1.0.3

1.0.3.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

09/04 2015

1.0.2

1.0.2.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

19/03 2015

1.0.1

1.0.1.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3

 

by Avatar overtrue

sdk weixin wechat weixin-sdk

13/03 2015

1.0

1.0.0.0

微信SDK

  Sources   Download

MIT

The Requires

  • php >=5.3

 

by Avatar overtrue

sdk weixin wechat weixin-sdk