Registry / http-client / mezzio-mezzio-problem-details

mezzio-mezzio-problem-details

JSON →
library1.19.0phppackagistunverified

Problem Details for PSR-7 HTTP APIs addressing the RFC 7807 standard for error responses.

composer require mezzio/mezzio-problem-details
INSTALL
IMPORT
SIG · MEZZIO-MEZZIO-PROB
M
mezzio-mezzio-problem-details
http-clientphpv1.19.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ProblemDetailsResponseFactory
use Mezzio\ProblemDetails\ProblemDetailsResponseFactory;

Create a RFC 7807 problem details response for a 404 error.

use Mezzio\ProblemDetails\ProblemDetailsResponseFactory; $factory = new ProblemDetailsResponseFactory(); $response = $factory->createResponse(404, 'Not Found', 'The requested resource was not found.');
Debug
Known issues
gotchaRequires PSR-7 and PSR-17 implementations
fix
Ensure you have a PSR-7 implementation like laminas/laminas-diactoros installed.
affects: >=1.0.0
Upgrade
Version history
1.19.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Resources
mezzio-mezzio-problem-details — pip install mezzio-mezzio-problem-details · libregistry