PHP code example of jiji / http

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

    

jiji / http example snippets



s Test{
    public function get()
    {

        $client = new \Jiji\Http\Client();
        $client->get("https://www.apiopen.top/weatherApi", ['city'=>'成都']);
        
    }
    public function post()
    {

        $client = new \Jiji\Http\Client();
        $client->post("https://www.apiopen.top/weatherApi", ['city'=>'成都']);
        
    }
}