Skip to content

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

bash
composer require app-dev-panel/adapter-yii3

The package auto-registers via Yii 3's config plugin system — no manual wiring needed.

Configuration

All settings are managed in config/params.php:

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

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.final Adapter/Yii3 · class · implements TranslatorInterface 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.Adapter/Yii3 · class · implements SchemaProviderInterface.

Released under the MIT License.