PHP code example of zmop / laravel-zhima

1. Go to this page and download the library: Download zmop/laravel-zhima 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/ */

    

zmop / laravel-zhima example snippets


         $request = new ZhimaCreditScoreGetRequest();
         $request->setChannel("apppc");
         $request->setPlatform("zmop");
         $request->setTransactionId("201512100936588040000000465158");// 必要参数
         $request->setProductCode("w1010100100000000001");// 必要参数
         $request->setOpenId("268810000007909449496");// 必要参数
         $response = Zmop::execute($request);
         echo json_encode($response);