asialong/kwaixiaodian-sdk

2.0.6 2022-08-02 10:06 UTC

README

Install

composer require asialong/kwaixiaodian-sdk -vvv

Usage

<?php

$dispatch = new \Asialong\KwaixiaodianSdk\Kwaixiaodian([
    'client_id' => 'your-app-key',
    'client_secret' => 'your-secret',
    'sign_secret' => 'your-signSecret',
    'debug' => true,
    'member_type' => 'MERCHANT',
    'redirect_uri' => 'http://www.xxx.com/callback',
    'log' => [
        'name' => 'kwaixiaodian',
        'file' => __DIR__ . '/kwaixiaodian.log',
        'level' => 'debug',
        'permission' => 0777,
    ],
]);