1. Go to this page and download the library: Download othercode/rest 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/ */
othercode / rest example snippets
$api = new \OtherCode\Rest\Rest();
$api->configuration->url = "https://jsonplaceholder.typicode.com/";
$api = new \OtherCode\Rest\Rest(new \OtherCode\Rest\Core\Configuration(array(
'url' => 'https://jsonplaceholder.typicode.com/',
)));