Skip to content

marko-php/marko-errors-advanced

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

marko/errors-advanced

Pretty error pages with syntax-highlighted code, stack traces, and request details --- so you can diagnose issues at a glance during development.

Installation

composer require marko/errors-advanced

Quick Example

Just throw exceptions --- the advanced error handler catches them automatically and renders a rich HTML error page:

use Marko\Core\Exceptions\MarkoException;

throw new MarkoException(
    message: 'Order processing failed',
    context: 'Processing order #12345',
    suggestion: 'Check the payment gateway configuration in config/payments.php',
);

Documentation

Full usage, API reference, and examples: marko/errors-advanced

About

[READ-ONLY] Advanced error handling with Whoops integration for the Marko framework. Issues and PRs at https://github.com/marko-php/marko

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages