Looking to hire Laravel developers? Try LaraJobs

laravel-gjk-api maintained by mucts

Description
GuiJK API Request
Author
Last update
2022/02/16 09:41 (dev-master)
License
Links
Downloads
81

Comments
comments powered by Disqus

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