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.

Installs: 23 078

Dependents: 2

Suggesters: 0

Security: 0

Stars: 11

Watchers: 22

Forks: 1

pkg:composer/fuzz/http-exception

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