mucts / laravel-gjk-api
GuiJK API Request
9.1.0
2022-02-16 08:41 UTC
Requires
- php: ^8.1
- ext-json: *
- guzzlehttp/guzzle: ^7.4
- laravel/framework: ^9.1
Requires (Dev)
- phpunit/phpunit: ^9.5
README
Laravel gjk api
贵健康API接口请求SDK
Installation
Server Requirements
you will need to make sure your server meets the following requirements:
php >=7.2
JSON PHP Extension
OpenSSL PHP Extension
GMP PHP Extension
BCMath PHP Extension
laravel/framework ^7.0
Laravel Installation
composer require "mucts/laravel-gjk-api"
Usage
$id = gjk_request('/user_info',['user_id'=>10012111]);
Use Facade
$info = Gjk::request('/user_info',['user_id'=>10012111]);
Update Configuration
use MuCTS\Laravel\GuiJK\Config\Config; $info = Gjk::setConfig(new Config(['url'=>'https://..','app_id'=>10000,'secret_key'=>'','version'=>2000])) ->request('/user_info',['user_id'=>10012111]);
Configuration
If config/gjk.php
not exist, run below:
php artisan vendor:publish