Skip to content
🐳 WeChat Playground - 开源微信调试工具
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config config Apr 14, 2019
public frontend Apr 14, 2019
resources frontend Apr 14, 2019
routes config Apr 14, 2019
src init Apr 14, 2019
tests config Apr 14, 2019
.gitignore frontend Apr 14, 2019
.php_cs frontend Apr 14, 2019
README.md
composer.json update composer.json Apr 14, 2019
package-lock.json frontend Apr 14, 2019
package.json
phpunit.xml frontend Apr 14, 2019
tailwind.config.js frontend Apr 14, 2019
webpack.mix.js frontend Apr 14, 2019
yarn.lock frontend Apr 14, 2019

README.md

WeChat Playground

当前为测试体验版本,功能未完善,欢迎反馈 (Bug, Feature ...)

预览

WeChat Playground

安装

$ composer require mingyoung/wechat-playground:^1.0@dev

安装后发布前端文件

$ php artisan vendor:publish --tag=wechat-playground-assets --force

使用

设置公众号(目前暂时只支持公众号)

use WeChatPlayground\Playground;
use Illuminate\Http\Request;
use EasyWeChat\Factory;

Playground::use(function (Request $request) {
    return Factory::officialAccount([
        'app_id' => 'wx13123456789e20',
        'secret' => 'd88e35627234289348743ba9590c32',
    ]);
});

然后打开网址 http://example.com/wechat-playground

配置

自定义路由
WECHAT_PLAYGROUND_PATH=awesome
You can’t perform that action at this time.