Download the PHP package phauthentic/problem-details-symfony-bundle without Composer
On this page you can find all versions of the php package phauthentic/problem-details-symfony-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download phauthentic/problem-details-symfony-bundle
More information about phauthentic/problem-details-symfony-bundle
Files in phauthentic/problem-details-symfony-bundle
Package problem-details-symfony-bundle
Short Description Symfony bundle for the Problem Details for HTTP APIs RFC
License MIT
Informations about the package problem-details-symfony-bundle
Problem Details Symfony Bundle
This bundle provides support for RFC 9457.
- Turns
ValidationFailedException
exceptions into aProblemDetails
responses complying with RFC 9457.- The error building is fully customizable.
- Provides a
ProblemDetailsFactory
service to createProblemDetails
instances.
Installation
Documentation
Simply inject the ProblemDetailsFactoryInterface
into your handlers and use it to create ProblemDetails
responses.
Service Configuration
To add more converters to the kernel listener, you can tag additional services with phauthentic.problem_details.exception_converter
. They must implement the ExceptionConverterInterface.
To completely override the list of already configured listeners override
in your services.yaml
.
Problem Details Example
Alternatives
If you favor a different style of implementation check out the following bundles:
License
This bundle is under the MIT license.
Copyright Florian Krämer
All versions of problem-details-symfony-bundle with dependencies
symfony/http-kernel Version ~7.0
symfony/serializer Version ~7.0
symfony/uid Version ~7.0
symfony/validator Version ~7.0