PHP code example of ph-7 / just-http-status-codes
1. Go to this page and download the library: Download ph-7/just-http-status-codes 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/ */
ph-7 / just-http-status-codes example snippets
use PH7\JustHttp\StatusCode;
StatusCode::OK; // This is 200
StatusCode::CREATED; // 201 code
StatusCode::NOT_FOUND; // 404
StatusCode::INTERNAL_SERVER_ERROR; // 500