1. Go to this page and download the library: Download jpdik/request 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/ */
jpdik / request example snippets
$req = new Request("https://api.openweathermap.org/data/2.5");
$res = $req->get("/weather", "?q=São joão del rei&appid=d15abc236092bbf9dd28fa2c0a7a02a9");
$status = res->getStatusCode();
if($status == 200 && $res){
echo json_encode($res);
}