PHP code example of mucts / laravel-gjk-api

1. Go to this page and download the library: Download mucts/laravel-gjk-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mucts / laravel-gjk-api example snippets


$id = gjk_request('/user_info',['user_id'=>10012111]);

$info = Gjk::request('/user_info',['user_id'=>10012111]);

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]);

php artisan vendor:publish