ml-archive / php-http-exception

A library containing a set of RESTful HTTP exceptions that use a consistent interface.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fuzz HTTP Exception

A library containing a set of RESTful HTTP exceptions that use a consistent interface, built upon the ideas set by symfony/http-kernel

Usage

<?php

use Fuzz\HttpException\AccessDeniedHttpException;

throw new AccessDeniedHttpException('Access denied.');

Testing

phpunit

Code Coverage

phpunit --coverage-html tests/coverage && open tests/coverage/index.html

TODO

  1. Support all appropriate HTTP status codes
  2. Improve exception API

About

A library containing a set of RESTful HTTP exceptions that use a consistent interface.

License:MIT License


Languages

Language:PHP 100.0%