Changelog
update: README.md
Major rewrite. The plugin now covers (almost) every event Matomo dispatches and renders them inline at their dispatch point.
Hook discovery
HookCatalog scans core/ and plugins/ for every
Piwik::postEvent('…') call site. Same-file self::FOO_EVENT
constants are resolved automatically.tmp/cache/hooksviewer-catalog.php and rebuilt
whenever the source tree changes (mtime-based signature, 5 min TTL).Rendering
<details><summary>HookName</summary><pre><code>args…</code></pre></details>.Safety
matomo.php payloads stay byte-exact.format=html) keep their inline output, so
hooks like ViewDataTable.filterViewDataTable,
Visualization.beforeRender, Metrics.isLowerValueBetter, and
Widget.filterWidgets are visible inside each widget as it loads.tmp/logs/hooksviewer.log with timestamp, request id, and args.
Watch with tail -f.Internals
__call() dispatcher replaces 200+ hand-rolled stub
methods. The whole plugin is ~340 lines of PHP.Initial plugin commit.