PHP code example of steve-liuxu / jg-service-for-laravel

1. Go to this page and download the library: Download steve-liuxu/jg-service-for-laravel 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/ */

    

steve-liuxu / jg-service-for-laravel example snippets

 
composer 

    'providers' => [
        // ...
        SteveLiuxu\JGService\JGServiceProvider::class,,
    ]

  
  return [
      //appid,在官网的"我的应用"中找到相关值
      'showapi_appid' => 'xxxxx',
  
      //app密钥,在官网的"我的应用"中找到相关值
      'showapi_secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  
      //验证码识别请求地址
      'showapi_url'=>'http://route.showapi.com/184-2',
  ];

  

   Route::get('/test', function (){
         $test = new \steveLiuxu\JGService\JGService();
  
         dd($test->GetScore("xxxx","xxxx","xxx"));
   });