1. Go to this page and download the library: Download wbsartori/request-manager 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/ */
setClient((new Client)); #Set the Client you want to use, if you don't use this method, Guzzle will be set as default.
basicAuth($username, $password); #Basic authentication, if not used, the default noAuth will be used.
bearerTokenAuth($token); #Bearer token authentication, if not used, the default noAuth will be used.
setHeader($headers) #Receives an array of headers from the request if necessary.
setUri($uri) #Get the api host with the slash at the end.
setData($uri) #Receives an array of data if the method needs to pass some value.
get($url) #Receives the route for which you want to fetch data.
post($url) #Get the route for which you want to create data.
put($url) #Get the route for which you want to update data.
delete($url) #Get the route for which you want to delete data.
text
Request Management Package
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.