Yii 3 Adapter
The Yii 3 adapter is the reference ADP adapter. It bridges ADP Kernel and API into Yii 3 via config plugins.
Installation
composer require app-dev-panel/adapter-yii3The package auto-registers via Yii 3's config plugin system — no manual wiring needed.
Configuration
All settings are managed in config/params.php:
'app-dev-panel/yii3' => [
'enabled' => true,
'collectors' => [...],
'trackedServices' => [...],
'ignoredRequests' => [],
'ignoredCommands' => [],
'dumper' => [
'excludedClasses' => [],
],
'logLevel' => [
'AppDevPanel\\' => 0,
],
'storage' => [
'path' => '@runtime/debug',
'historySize' => 50,
'exclude' => [],
],
],Middleware
Add the following middleware to your web application stack (order matters):
DebugHeaders → ErrorCatcher → YiiApiMiddleware → ... → Router- DebugHeaders
AppDevPanel\Api\Debug\Middleware\DebugHeadersAdds debug headers to response. Information from these headers may be used to request information about the current request as it is done in the debug toolbar. — must be outermost to attachX-Debug-Ideven on error responses - YiiApiMiddleware
AppDevPanel\Adapter\Yii3\Api\YiiApiMiddlewarePSR-15 middleware that intercepts /debug/api and /inspect/api requests and delegates them to the ADP ApiApplication. — intercepts/debug/api/*requests before the router
Collectors
Includes Yii-specific collectors for database queries, mailer, queue, router, validator, translator, and views — in addition to all Kernel collectors (logs, events, exceptions, HTTP client, etc.).
Translator Integration
When yiisoft/translator is installed, the adapter registers TranslatorInterfaceProxyAppDevPanel\Adapter\Yii3\Collector\Translator\TranslatorInterfaceProxyDecorates Yiisoft TranslatorInterface to feed translation lookups to TranslatorCollector. in trackedServices. All translate() calls on Yiisoft\Translator\TranslatorInterface are intercepted automatically. See Translator for details.
Database Inspector
Database schema inspection is provided via Yiisoft\Db through DbSchemaProviderAppDevPanel\Adapter\Yii3\Inspector\DbSchemaProviderProvides Db Schema data..