Search by

marko / errors-advanced

markshust

Advanced error handling with Whoops integration for the Marko framework

Package info

github.com/marko-php/marko-errors-advanced

pkg:composer/marko/errors-advanced

Statistics

Installs: 189

Dependents: 0

Suggesters: 2

Stars: 0

0.11.0 2026-10-06 14:07 UTC

README

Pretty error pages with syntax-highlighted code, stack traces, and request details --- so you can diagnose issues at a glance during development. In production it serves a safe generic page (or {"message": "Server Error"} to JSON clients) with status 500.

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