PHPackages                             shipfi/wechat - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. shipfi/wechat

ActiveLibrary

shipfi/wechat
=============

微信SDK-appSerect改版

3.3.10(8y ago)010MITPHPPHP &gt;=5.5.0

Since Mar 13Pushed 8y ago1 watchersCompare

[ Source](https://github.com/shipfi/wechat)[ Packagist](https://packagist.org/packages/shipfi/wechat)[ RSS](/packages/shipfi-wechat/feed)WikiDiscussions 2.1 Synced 3d ago

READMEChangelogDependencies (10)Versions (46)Used By (0)

Wechat
======

[](#wechat)

[English](README_EN.md)

可能是目前最优雅的微信公众平台 SDK 了。[Laravel 5 拓展包: overtrue/laravel-wechat](https://github.com/overtrue/laravel-wechat)

> 3.0 开发中，目前大部分模块已经完成，希望您能帮忙测试为谢！[3.0](https://github.com/overtrue/wechat/tree/3.0)

SDK QQ群：`319502940`

微信开发者交流群：`9179779` （这不是微信群，是名称叫“微信开发者交流群” 的QQ群，微信上聊技术？你逗我？）

[![Build Status](https://camo.githubusercontent.com/f0449d1c4c33fbb84a150dd6c5871b9f33df4c9ea3520ded64ff7563ad9e77eb/68747470733a2f2f7472617669732d63692e6f72672f6f766572747275652f7765636861742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/overtrue/wechat)[![Latest Stable Version](https://camo.githubusercontent.com/6ab555b3d4bf58d6ae542a8e691d2f0ddb1032a35b8af03a4847c8e8772e7bbd/68747470733a2f2f706f7365722e707567782e6f72672f6f766572747275652f7765636861742f762f737461626c652e737667)](https://packagist.org/packages/overtrue/wechat)[![Latest Unstable Version](https://camo.githubusercontent.com/9b6c07745162bc92a0cba18365dbc86760046e68b8d38ca8803ccbc4cd0d28db/68747470733a2f2f706f7365722e707567782e6f72672f6f766572747275652f7765636861742f762f756e737461626c652e737667)](https://packagist.org/packages/overtrue/wechat)[![Build Status](https://camo.githubusercontent.com/c461244b886bc2a20870486ce7c520e1fdb969962890da751b27f7cbb2c37e65/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6f766572747275652f7765636861742f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/overtrue/wechat/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/3aabad18b3bfff6d204167e90eaa511997c3a10811a5d95d1033fa766336502a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6f766572747275652f7765636861742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/overtrue/wechat/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/9acb52dce55d30aa0d115b3a01d967b4941aba58e29f5edbd181ae608ba1a9e3/68747470733a2f2f706f7365722e707567782e6f72672f6f766572747275652f7765636861742f646f776e6c6f616473)](https://packagist.org/packages/overtrue/wechat)[![License](https://camo.githubusercontent.com/3e227372b4a73292d64aa909a3979b02933ef7c8d049812a2143085bf5682b74/68747470733a2f2f706f7365722e707567782e6f72672f6f766572747275652f7765636861742f6c6963656e7365)](https://packagist.org/packages/overtrue/wechat)

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

- 命名不那么乱七八糟；
- 隐藏开发者不需要关注的细节；
- 方法使用更优雅，不必再去研究那些奇怪的的方法名或者类名是做啥用的；
- 自定义缓存方式；
- 符合 [PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md) 标准，你可以各种方便的与你的框架集成；
- 高度抽象的消息类，免去各种拼json与xml的痛苦。

安装
--

[](#安装)

环境要求：PHP &gt;= 5.3.0

1. 使用 [composer](https://getcomposer.org/)

```
composer require "overtrue/wechat:2.1.*"
```

2. 手动安装

下载 [2.1版zip包](https://github.com/overtrue/wechat/archive/2.1.zip) 或者下载指定版本： 。

然后引入根目录的autoload.php即可：

```
