mac1qc/http-status-code

Helper to get HTTP status code by using common name

Maintainers

Package info

github.com/mac1qc/http-status-code

pkg:composer/mac1qc/http-status-code

Statistics

Installs: 3

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.2 2024-09-12 23:11 UTC

This package is auto-updated.

Last update: 2026-03-13 02:40:08 UTC


README

Helper to get HTTP status code by using common name, so it's easier to read while coding.

How to install?

In your project, run in your terminal

$ composer require mac1qc/http-status-code

How to use?

Instead of writting your Status code in number like:

if ($statusCode === 200) {
  return 'something';
}

Do something like:

if ($statusCode === StatusCode::OK->value) {
  return 'something';
}

Wanna show your appreciation?

If you find that library useful, you can buy me a coffee/beer