etu / slim-libs
This package is abandoned and no longer maintained.
No replacement package was suggested.
An opinionated set of libraries for using Slim Framework 4 that has some care and thought put into error handling and logging.
0.0.7
2021-05-12 19:07 UTC
Requires
- php: ^8.0
- monolog/monolog: ^2.2
- psr/http-message: ^1.0
- psr/http-server-handler: ^1.0
- psr/http-server-middleware: ^1.0
- slim/psr7: ^1.4
- slim/slim: ^4.7
README
Etu’s Slim Framework 4 helper libraries
This is an opinionated set of libraries for using Slim Framework 4 that has some care and thought put into error handling and logging.
It comes with the following custom bits:
- Custom exceptions that supports something that works like PSR-3 context and specifying the log level for each exception type
- Custom error handler to handle these exceptions and log levels
- Custom shutdown handler to log using the error handler
- Response helper to make it easier to write responses.
It’s built to use with composer, Slim 4, Monolog (or other PSR-3 interface).
I have a template implementation for using these libraries here: https://github.com/etu/etu-slim-skeleton