Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xutl/yii2-wechat
这是一个适用于Yii2的微信SDK
https://github.com/xutl/yii2-wechat
wechat xutl yii2-component yii2-extension yii2-wechat
Last synced: about 1 month ago
JSON representation
这是一个适用于Yii2的微信SDK
- Host: GitHub
- URL: https://github.com/xutl/yii2-wechat
- Owner: xutl
- License: mit
- Created: 2017-07-11T04:24:17.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-29T10:26:02.000Z (over 6 years ago)
- Last Synced: 2024-10-01T14:25:40.068Z (about 2 months ago)
- Topics: wechat, xutl, yii2-component, yii2-extension, yii2-wechat
- Language: PHP
- Homepage:
- Size: 97.7 KB
- Stars: 9
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# yii2-wechat
这是一个适用于Yii2的微信SDK。
[![Build Status](https://travis-ci.org/xutl/yii2-wechat.svg?branch=master)](https://travis-ci.org/xutl/yii2-wechat)
## Feature
- 命名不那么乱七八糟;
- 隐藏开发者不需要关注的细节;
- 方法使用更优雅,不必再去研究那些奇怪的的方法名或者类名是做啥用的;
- 符合 [PSR](https://github.com/php-fig/fig-standards) 标准,你可以各种方便的与你的框架集成;
- 高度抽象的消息类,免去各种拼json与xml的痛苦;
- 详细 Debug 日志,一切交互都一目了然;## Requirement
1. PHP >= 5.6.0
2. **[composer](https://getcomposer.org/)**
3. openssl 拓展
4. fileinfo 拓展(素材管理模块需要用到)## Installation
```shell
composer require "xutl/yii2-wechat:~2.0" -vvv
```## Usage
基本使用(以服务端为例):
```php
[
'wechat' => [
'class' => 'xutl\wechat\Wechat',
'appId' => 'wx23fc4372b2498821',
'appSecret' => '5a4014e73817483362d54f77f8bdb6b9',
'components' => [
'oauth' => [
'useOpenId' => false
],
'openOAuth' => [
'useOpenId' => false
]
],
],
]
```## Documentation
- 微信公众平台文档: https://mp.weixin.qq.com/wiki
## Thanks to
* [Yii framework](https://github.com/yiisoft/yii2)
* [easywechat](https://github.com/overtrue/wechat)。## License
MIT