panwenbin / wechat-sdk-wrapper
a wrapper for wechat sdk
Installs: 349
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/panwenbin/wechat-sdk-wrapper
Requires
- php: >=7.0.0
- ext-json: *
- panwenbin/curl: ^0.2.0
This package is not auto-updated.
Last update: 2025-10-04 10:46:32 UTC
README
composer require panwenbin/wechat-sdk-wrapper
example
把下面内容存为index.php文件放在你的项目目录下,填上appid、secret、token值
<?php
include __DIR__ . '/vendor/autoload.php';
$conf = [
'appid' => '',
'secret' => '',
'token' => '',
'logFile' => 'log.txt', // 默认值
];
include __DIR__ . '/vendor/panwenbin/wechat-sdk-wrapper/examples/log.php';
include __DIR__ . '/vendor/panwenbin/wechat-sdk-wrapper/examples/index.php';
然后在公众平台后台绑定此地址为回调接口
试着对它说'hi'