1. Go to this page and download the library: Download zodream/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/ */
zodream / http example snippets
use Zodream\Http\Http;
(new Http('https://zodream.cn'))->get();
(new Http())->url('https://zodream.cn', [
'page' => 1
])->get();
(new Http('https://zodream.cn'))->maps([
'page' => 1
])->text();