DevKit
WARNING: Dev use only!
This plugin is for dev environments. Do NOT use in production.
Leaks data. Slows things down. You’ve been warned.
What This
Collection of tools for Moodle devs. Debug bar, CLI commands, linter framework, MCP server, database tracing, and more.
Components
| Feature | Description |
|---|---|
| Debug | Fluent debug() utility for quick variable inspection, performance measurement, and database table info. |
| Debug Bar | PHP Debug Bar with 9 collectors. Log messages, measure timings, see DB queries, track events. |
| CLI Commands | Symfony Console app. Lint, list plugins, inspect DB schema, start MCP server. |
| Lint Framework | 7 linters. PHPCS, PHPStan, ESLint, Stylelint, PHPDoc, PHP syntax, lang strings. |
| MCP Server | Model Context Protocol server for AI coding agents. |
| Database Tracing | PDO-based query tracing with backtraces. |
| String Manager | Log all get_string() calls to debug bar. |
| Hooks & Events | Moodle 4.5+ hooks + wildcard event observer. |
Setup
For Devs
- Extending - New collectors, linters, MCP tools, tests