liopoos / http-code
Simple HTTP status codes
1.0.2
2025-01-13 08:19 UTC
Requires
- php: ^7.3
Requires (Dev)
- phpunit/phpunit: ^9.6
This package is auto-updated.
Last update: 2025-06-13 10:16:50 UTC
README
A simple library to handle HTTP status codes in a more readable way.
Installation
composer require liopoos/http-code
Usage
<?php use Liopoos\HttpCode\Http; echo Http::HTTP_OK; // 200 echo Http::HTTP_OK(); // 200
All the HTTP status codes are available as constants in the List of HTTP status codes.
License
MIT