Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/weierophinney/problem-details
Problem Details for PSR-7 APIs
https://github.com/weierophinney/problem-details
error-handling middleware php problem-details psr-7
Last synced: 3 days ago
JSON representation
Problem Details for PSR-7 APIs
- Host: GitHub
- URL: https://github.com/weierophinney/problem-details
- Owner: weierophinney
- License: bsd-2-clause
- Created: 2017-05-03T21:11:39.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-03T16:49:33.000Z (over 7 years ago)
- Last Synced: 2024-12-16T21:42:53.414Z (6 days ago)
- Topics: error-handling, middleware, php, problem-details, psr-7
- Language: PHP
- Homepage: https://weierophinney.github.io/problem-details/
- Size: 587 KB
- Stars: 10
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Problem Details for PSR-7 Applications
> ## ABANDONED
>
> This repository was used as the starting point for
> [zendframework/zend-problem-details](https://github.com/zendframework/zend-problem-details),
> and has been abandoned in favor of that repository.[![Build Status](https://secure.travis-ci.org/weierophinney/problem-details.svg?branch=master)](https://secure.travis-ci.org/weierophinney/problem-details)
[![Coverage Status](https://coveralls.io/repos/github/weierophinney/problem-details/badge.svg?branch=master)](https://coveralls.io/github/weierophinney/problem-details?branch=master)This library provides provides a factory for generating Problem Details
responses, error handling middleware for automatically generating Problem
Details responses from errors and exceptions, and custom exception types for
[PSR-7](http://www.php-fig.org/psr/psr-7/) applications.## Installation
Run the following to install this library:
```bash
$ composer require weierophinney/problem-details
```## Documentation
Documentation is [in the doc tree](doc/book/), and can be compiled using [mkdocs](http://www.mkdocs.org):
```bash
$ mkdocs build
```You may also [browse the documentation online](https://weierophinney.github.io/problem-details/index.html).