Download the PHP package atournayre/exception-handler without Composer
On this page you can find all versions of the php package atournayre/exception-handler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download atournayre/exception-handler
More information about atournayre/exception-handler
Files in atournayre/exception-handler
Package exception-handler
Short Description Centralized exception handling with Symfony and custom PHP attributes
License MIT
Informations about the package exception-handler
Exception Handler Component for Symfony
This component helps handle exceptions inside Symfony.
It is inspired from the article Centralized exception handling with Symfony and custom PHP attributes by Dejan Angelov. Read it before!
Install
Composer
Usage
- Define
HttpStatusCodeExceptionHandler
as a listener in your application. - Declare attributes on your existing/new exceptions classes.
- Remove (or do not catch exception) in your controller.
- It works!
Define HttpStatusCodeExceptionHandler
as a listener in your application
Declare attributes on your existing/new exceptions classes.
Contributing
Of course, open source is fueled by everyone's ability to give just a little bit of their time for the greater good. If you'd like to see a feature or add some of your own happy words, awesome! Tou can request it - but creating a pull request is an even better way to get things done.
Either way, please feel comfortable submitting issues or pull requests: all contributions and questions are warmly appreciated :).
All versions of exception-handler with dependencies
symfony/http-foundation Version ^5.4 || ^6.0
symfony/http-kernel Version ^5.4 || ^6.0
symfony/event-dispatcher Version ^5.4 || ^6.0
symfony/routing Version ^5.4 || ^6.0