PHP code example of fiveone / kis

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

    

fiveone / kis example snippets



Kis\Network\Common\Curlhttp;

Curlhttp::$logPath = "d:/myf/mylog.log";//日志地址,不设置使用"/tmp/curl_debug.log." . date("Ymd");
Curlhttp::$logRet = true;//true 日志中记录response
Curlhttp::$proxyForce = false;//true使用代理,转发到Curlhttp::$proxyUrl
Curlhttp::$proxyUrl = "http://xxxx";//转发代理地址
Curlhttp::$_cTimeout = 1;
Curlhttp::$_rTimeout = 1;
Curlhttp::$_wTimeout = 1;
Curlhttp::$logPostData = false;//true表示记录post参数
$response = Curlhttp::get("http://xyz111.com/sumeurl");