Search by

empiricompany / maho-ignition

Error pages and diagnostics integration for Maho Commerce using Spatie Ignition.

Maintainers

Package info

github.com/empiricompany/maho-ignition

Type:maho-module

pkg:composer/empiricompany/maho-ignition

Transparency log

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

1.0.0 2026-09-06 12:21 UTC

This package is auto-updated.

Last update: 2026-09-07 07:12:20 UTC


README

Maho Commerce License PHP PHPStan Level

Latest Version on Packagist Total Downloads

Integrate Spatie Ignition error pages, optional OpenAI solutions, and optional Flare reporting into Maho.

Requirements

  • PHP 8.3 or newer
  • Maho with the mage_run_installed_exception and mage_run_exception events
  • spatie/ignition 1.15.1 or newer within the 1.x series

Installation

Install the module with Composer:

composer require empiricompany/maho-ignition

The package is a Maho module published as empiricompany/maho-ignition.

Configuration

Open System > Configuration > Advanced > Developer > Ignition Settings.

immagine

Available settings include:

  1. Enabled — Enable or disable Ignition error pages.
  2. Default Editor — Select the editor used by Ignition (default: clipboard).
  3. Default Theme — Select auto, light, or dark (default: auto).
  4. Save Custom Settings in Session — Allow session-based editor and theme overrides.
  5. Enable AI-Generated Solutions — Enable OpenAI-powered solutions.
  6. OpenAI API Key — Provide the key used by the optional OpenAI integration.
  7. Enable Flare — Send integration errors to Flare.
  8. Flare API Key — Provide the key for the Flare project.
  9. Anonymize IP — Anonymize IP addresses sent to Flare.

The Ignition UI is available only when Maho developer mode is enabled. Flare reporting is configured separately and can also send reports while developer mode is enabled; enabling Flare does not make the Ignition UI available in non-developer mode.

The OpenAI integration is optional. Enable AI-generated solutions only after installing the additional client:

composer require openai-php/client

openai-php/client is required for the AI solutions provider, but is not required for the Ignition UI or Flare integration.

Runtime error and Flare reporting limits

Some runtime PHP errors can render Ignition but are not sent to Flare: Ignition uses Maho's handler/renderer, while Flare applies Spatie's lifecycle and environment guards. Maho's mage_run_installed_exception and mage_run_exception hooks cover only exceptions caught by Mage::run().

Pre-bootstrap errors, parse errors, and pre-bootstrap fatals are not interceptable. The developer-mode path is only an attempt, not a guarantee; no Maho patch is required. Check the Flare dashboard and PHP/application logs separately; never log the Flare key.

Ignition configuration endpoint

The POST /_ignition/update-config endpoint is available through the developer/ignition path and accepts a JSON request body. The implementation accepts only these configuration keys:

  • themeauto, light, or dark.
  • editor — one of the editor options exposed by Ignition.

Screenshots

Ignition error page Flare
immagine immagine
)

License

This module is released under the Open Software License 3.0 (OSL-3.0). See LICENSE.txt.