fuzz / http-exception
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
Requires
- php: >=7.0
Requires (Dev)
- phpunit/phpunit: ~5.6
This package is not auto-updated.
Last update: 2024-05-05 06:23:45 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
- Support all appropriate HTTP status codes
- Improve exception API