Skip to content

This is a simple library for creating http responses in bare bones php

License

Notifications You must be signed in to change notification settings

withinboredom/response-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A super simple http response code library

This is a simple library for creating http responses in bare bones php.

Installation

composer require withinboredom/response-code

Usage

<?php

require_once 'vendor/autoload.php';

use function Withinboredom\ResponseCode\http_response_code;
use Withinboredom\ResponseCode\HttpResponseCode;

http_response_code(HttpResponseCode::Accepted);

More information

The response codes are based on RFC 9119 which took effect in June 2022.

About

This is a simple library for creating http responses in bare bones php

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages