PHP code example of bayfrontmedia / php-http-response
1. Go to this page and download the library: Download bayfrontmedia/php-http-response 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/ */
bayfrontmedia / php-http-response example snippets
$response->reset();
print_r($response->getStatusCode());
$response->setHeaders([
'X-Rate-Limit-Limit' => 100,
'X-Rate-Limit-Remaining' => 99
]);
print_r($response->getHeaders());
echo $response->getBody();
$response->send();