fuzz/http-exception

This package is abandoned and no longer maintained. No replacement package was suggested.

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

1.0.4 2023-05-02 21:44 UTC

README

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