prinx/http-codes

PHP class for HTTP Response Codes

dev-main 2021-03-08 19:29 UTC

This package is auto-updated.

Last update: 2024-10-26 00:04:03 UTC


README

Build Status License

PHP class for HTTP Response Codes

Installation

composer require prinx/http-codes

Usage

// "Import" the class
use Prinx\HttpCode\Code as HTTP;

// Use the code in your code.
echo HTTP::OK; // 200

Contribute

  • Todo:
    • Document undocument codes.
    • Add other relevant unofficial codes.

Credits