coercive/headerstatus

Coercive HeaderStatus Utility

1.0.1 2018-02-07 16:16 UTC

This package is auto-updated.

Last update: 2024-11-09 14:12:10 UTC


README

HeaderStatus lets you simply send HTTP response status.

Get

composer require coercive/headerstatus

Usage

use Coercive\Utility\HeaderStatus

# SEND - 200 Defalut Status
HeaderStatus::send();

# SEND - Your Status : Example 301
HeaderStatus::send( 301 );

# SEND - Force don't use php function "http_response_code"
HeaderStatus::send( 418, TRUE );