1. Go to this page and download the library: Download saboohy/httpstatus 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/ */
saboohy / httpstatus example snippets
use Saboohy\HttpStatus\Success;
echo Success::OK->value;
echo Success::OK->message();
use Saboohy\HttpStatus\Info;
echo Info::CONTINUE->value;
use Saboohy\HttpStatus\Success;
echo Success::OK->value;
use Saboohy\HttpStatus\Redirect;
echo Redirect::MULTIPLE_CHOICES->value;
use Saboohy\HttpStatus\Client;
echo Client::BAD_REQUEST->value;
use Saboohy\HttpStatus\Server;
echo Server::INTERNAL_SERVER_ERROR->value;
use Saboohy\HttpStatus\Client;
use Saboohy\HttpStatus\HttpErrorException;
throw new HttpErrorException(Client::BAD_REQUEST);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.