PHP code example of juanchosl / httpheaders

1. Go to this page and download the library: Download juanchosl/httpheaders 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/ */

    

juanchosl / httpheaders example snippets


echo Codes::OK; //200

echo Messages::OK; //OK

echo Headers::getMessage(Codes::OK); //OK

echo Extensions::JS; //js

echo MimeTypes::HTML; //text/html

echo ContentType::get("/home/users/me/Donwloads/file.txt"); //text/plain