最新服务器上的版本,以后用这个
edit | blame | history | raw

PHP Wechat SDK

Usage

Install

composer require 'luweiss/wechat'

Wechat

require __DIR__ . '/vendor/autoload.php';

$wechat = new \luweiss\Wechat\Wechat();
$accessToken = $wechat->getAccessToken;

WechatPay

require __DIR__ . '/vendor/autoload.php';

$wechatPay = new \luweiss\Wechat\WechatPay();
$res = $wechatPay->unifiedOrder();