PHPackages                             xutl/yii2-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. [API Development](/categories/api)
4. /
5. xutl/yii2-wechat

ActiveYii2-extension[API Development](/categories/api)

xutl/yii2-wechat
================

The wechat extension for the Yii framework

2.0.0.11(7y ago)93.9k12BSD-3-ClausePHPPHP &gt;=5.6.0

Since Jul 12Pushed 7y agoCompare

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

READMEChangelog (10)Dependencies (3)Versions (19)Used By (2)

yii2-wechat
===========

[](#yii2-wechat)

这是一个适用于Yii2的微信SDK。

[![Build Status](https://camo.githubusercontent.com/bd023fe571fb31c6a69359475edc33387cbc06306c16eff3d2a4f0e04bce2197/68747470733a2f2f7472617669732d63692e6f72672f7875746c2f796969322d7765636861742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/xutl/yii2-wechat)

Feature
-------

[](#feature)

- 命名不那么乱七八糟；
- 隐藏开发者不需要关注的细节；
- 方法使用更优雅，不必再去研究那些奇怪的的方法名或者类名是做啥用的；
- 符合 [PSR](https://github.com/php-fig/fig-standards) 标准，你可以各种方便的与你的框架集成；
- 高度抽象的消息类，免去各种拼json与xml的痛苦；
- 详细 Debug 日志，一切交互都一目了然；

Requirement
-----------

[](#requirement)

1. PHP &gt;= 5.6.0
2. **[composer](https://getcomposer.org/)**
3. openssl 拓展
4. fileinfo 拓展（素材管理模块需要用到）

Installation
------------

[](#installation)

```
composer require "xutl/yii2-wechat:~2.0" -vvv
```

Usage
-----

[](#usage)

基本使用（以服务端为例）:

```
