1. Go to this page and download the library: Download booosta/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/ */
// Submits a GET request to "$url$uri". If $raw is false, an array is returned, otherwise the JSON code
$this->get($uri, $raw = false);
// As get, but uses "$uri" instead of "$url$uri" ($url is the protected class variable)
$this->get_url($uri, $raw = false);
// Submits a POST request. $data has to be an array
$this->post($uri, $data, $raw = false);
// Submits a PUT request.
$this->put($uri, $data, $raw = false);
// Submits a DELETE request
$this->delete($uri);
// Sets optional username and password in the request. Call this before submitting a request.
$this->set_credentials($username, $password);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.