Pretty error pages with syntax-highlighted code, stack traces, and request details --- so you can diagnose issues at a glance during development.
composer require marko/errors-advancedJust 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',
);Full usage, API reference, and examples: marko/errors-advanced