Skip to content

cuijiji/jijihttpclient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jijihttpclient

jiji make a http client

Installation & loading

jijihttpclient is available on Packagist (using semantic versioning), and installation via Composer is the recommended way to install jijihttpclient. Just add this line to your composer.json file:

"jiji/http": "^1.1"

or run

composer require jiji/http

A Simple Example

<?php
require __DIR__."/../vendor/autoload.php";

class 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'=>'成都']);
        
    }
}

License

Licensed under the MIT license