jiji make a http client
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
<?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'=>'成都']);
}
}
Licensed under the MIT license