liopoos/http-code

Simple HTTP status codes

Installs: 11

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/liopoos/http-code

1.0.2 2025-01-13 08:19 UTC

This package is auto-updated.

Last update: 2025-10-13 10:57:17 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