mark630235 / sdk.qqmechat
dev-master
2020-03-31 09:42 UTC
Requires
- php: >=5.6
- freyo/qcloud-apigateway-http: ^1.0
- illuminate/support: ^5.0
Requires (Dev)
- fzaninotto/faker: ~1.4
- mockery/mockery: 1.0.x-dev
- phpunit/phpunit: ~7.0
This package is not auto-updated.
Last update: 2025-03-27 08:06:36 UTC
README
Requirement
- PHP >= 5.6
- Composer
- openssl 拓展
Installation
$ composer require qqmylife/sdk.payment -vvv
For develop:
$ composer require qqmylife/sdk.payment:dev-master -vvv
Usage
<?php include 'vendor/autoload.php'; use QLife\ApiGateway\Payment; $app = new Application([ 'response_type' => 'collection', 'secret_key' => 'your-secret-key', 'secret_id' => 'your-secret-id', 'log' => [ 'file' => __DIR__ . DIRECTORY_SEPARATOR . 'apigateway.log', 'level' => 'debug', ], 'http' => [ 'base_uri' => 'http://{id}.{region}.apigateway.myqcloud.com', ], ]); $response = $app->order->unify([ //... ]); var_dump($response);
License
MIT