PHP code example of boss420 / common

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

    

boss420 / common example snippets


$oop = new \boss420\common\AsynHandle();
$result = $oop->Request("xxxxxx");
echo $result;


 public function Request($url, $cookie = array(), $post = array(), $timeout = 3){
 //***
 }


header('Content-type: application/json');
$result = $oop->Get("https://www.udopay.com/index.php/Gateway/securepay");
echo $result;


 public function Get($url, $cookie = array(), $post = array(), $timeout = 30){
 //***
 }