mucts/laravel-gjk-api

GuiJK API Request

9.1.0 2022-02-16 08:41 UTC

This package is auto-updated.

Last update: 2024-11-16 14:19:37 UTC


README

Build Status Code Intelligence Status Scrutinizer Code Quality Total Downloads Latest Stable Version License

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