phpolar/http-codes

PHP class for HTTP Response Codes

0.0.6 2023-01-16 19:44 UTC

This package is auto-updated.

Last update: 2024-10-28 01:40:04 UTC


README

PHP class for HTTP Response Codes

Installation

composer require phpolar/http-codes

Usage

// "Import" the class
use Phpolar\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