php-http-status / httpstatuscode
Utility to interact with HTTP status code.
v1.0.0
2014-11-11 12:43 UTC
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2025-05-06 06:12:34 UTC
README
Utility to interact with HTTP status code.
GETTING THE CODE
Github
git clone git@github.com:wyixin/php-http-status.git
Composer
composer.json: Project Setup
{
"require": {
"php-http-status/httpstatuscode": "dev-master"
}
}
Install
composer install
GETTING STARTED
<?php
require "src/Http/index.php";
or
<?php
require 'vendor/autoload.php';
USAGE
test.php
var_dump(Http\_Continue);
var_dump(Http\_Switching_Protocols);
var_dump(Http\Switching_Protocols);
var_dump(Http\Ok);
RUN TESTS
use phpunit
phpunit tests