PHPackages                             yuxiaoyang/getwxopenid - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. yuxiaoyang/getwxopenid

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

yuxiaoyang/getwxopenid
======================

getwxopenid support in laravel 5.1

1.0(9y ago)012MITPHP

Since Apr 18Pushed 9y ago1 watchersCompare

[ Source](https://github.com/865826021/laravel5.1-package-getwxopenid)[ Packagist](https://packagist.org/packages/yuxiaoyang/getwxopenid)[ RSS](/packages/yuxiaoyang-getwxopenid/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (2)Used By (0)

### Laravel 5.1 微信JSAPI支付中获取openid

[](#laravel-51-微信jsapi支付中获取openid)

使用示例
====

[](#使用示例)

### 生成openid参数示例代码

[](#生成openid参数示例代码)

```
composer require yuxiaoyang/getwxopenid

```

或者在你的 `composer.json` 的 require 部分中添加:

```
 "yuxiaoyang/getwxopenid": "~1.0"
```

下载完毕之后,直接配置 `config/app.php` 的 `providers`:

```
//Illuminate\Hashing\HashServiceProvider::class,

Yuxiaoyang\GetwxOpenid\GetwxOpenidProvider::class,
```

控制器中使用 `WxpayController.php` :

```
