1. Go to this page and download the library: Download tal7aouy/yusr 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/ */
tal7aouy / yusr example snippets
use Yusr\Http\YusrClient;
// Get client instance
$client = YusrClient::getInstance();
// Make a GET request
$response = $client->get('https://api.example.com/users');
// Work with response
$statusCode = $response->getStatusCode();
$data = $response->getBody()->getContents();
$headers = $response->getHeaders();