2017 © Pedro Peláez
 

library getwxopenid

getwxopenid support in laravel 5.1

image

yuxiaoyang/getwxopenid

getwxopenid support in laravel 5.1

  • Tuesday, April 18, 2017
  • by 865826021
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Laravel 5.1 微信JSAPI支付中获取openid

使用示例

生成openid参数示例代码

composer require yuxiaoyang/getwxopenid

或者在你的 composer.json 的 require 部分中添加:, (*1)

 "yuxiaoyang/getwxopenid": "~1.0"

下载完毕之后,直接配置 config/app.phpproviders:, (*2)

//Illuminate\Hashing\HashServiceProvider::class,

Yuxiaoyang\GetwxOpenid\GetwxOpenidProvider::class,

控制器中使用 WxpayController.php :, (*3)

```php, (*4)

<?php, (*5)

use \Yuxiaoyang\GetwxOpenid\GetwxOpenid;, (*6)

class WxpayController extends Controller {, (*7)

public $getwxopenid;

//获取JSAPI openid
public function getopenid()
{
    //创建示例对象
    $this->getwxopenid = new GetwxOpenid();
    $data = $this->getwxopenid->getOpenid();
    return $data;
}

}, (*8)

The Versions

18/04 2017

dev-master

9999999-dev

getwxopenid support in laravel 5.1

  Sources   Download

MIT

by yu xiao yang

18/04 2017

1.0

1.0.0.0

getwxopenid support in laravel 5.1

  Sources   Download

MIT

by yu xiao yang