moonpie / macro
library for micro app, etc wechat,weapp,spawn,alipay
2.0.1
2023-02-20 08:56 UTC
Requires
- php: >=7.0
- ext-bcmath: *
- ext-json: *
- ext-openssl: *
- ext-simplexml: *
- overtrue/wechat: ^4.1 || ^5
Requires (Dev)
- phpunit/phpunit: ^8.5
This package is not auto-updated.
Last update: 2025-03-31 19:00:55 UTC
README
介绍
一款基于EasyWechat的类库,现在这么多小程序应用(支付宝、抖音、百度),既然都是小程序,为何不放在一个类库呢。 EasyWechat解决了微信端的,剩下的就交给我吧。
安装
composer require moonpie/macro
用法
<?php
use Moonpie\Macro\Factory;
$config = [];
$payment_app = Factory::payment($config);
$official_app = Factory::officialAccount($config);
//-----------
//对于抖音应用
$config = [
'app_id' => '1232j3kj2k3',
'secret' => 'fjsadkfjskd',
];
$byte_app = Factory::byteMiniProgram($config);
$byte_payment_app = Factory::byteMiniPayment($config);
//其他应用后续完善