Overview
TestHelper adds a browseable developer backend at /test-helper for your CakePHP app, collecting several day-to-day tools in one place.

TIP
Everything here is a development aid — mount it behind your admin/dev gate. See Configuration for the authorization and back-link options.
Tools
| Tool | What it does |
|---|---|
| Association vs DB Audit | Compare declared associations against the real database foreign keys, with copy-paste fixes |
| SQL to Query Builder | Convert raw SQL into CakePHP Query Builder code |
| Test Runner | Run tests and view results/coverage in the backend; bake missing test files |
| Fixture Check | Compare fixtures against the live DB schema |
| URL Tools | Generate URL arrays from string URLs (reverse lookup) |
| Plugin Info | Inspect plugins, their hooks, and suggested improvements |
| Custom Linter Tasks | Project-specific code-quality checks via bin/cake linter |
Requirements
- PHP 8.2+
- CakePHP 5.1+
Installation
bash
composer require --dev dereuromark/cakephp-test-helperLoad the plugin (development only):
php
// src/Application.php
public function bootstrap(): void
{
parent::bootstrap();
if (Configure::read('debug')) {
$this->addPlugin('TestHelper');
}
}Then browse to /test-helper.
See Configuration for the available options and Troubleshooting if something doesn't render.