An open API service indexing awesome lists of open source software.

https://github.com/vjik/yii2-cycle-debug

Panel "Cycle ORM" for Yii2 Debug
https://github.com/vjik/yii2-cycle-debug

cycle debug orm yii2

Last synced: about 1 year ago
JSON representation

Panel "Cycle ORM" for Yii2 Debug

Awesome Lists containing this project

README

          



Panel "Cycle ORM" for Yii2 Debug



[![Latest Stable Version](https://poser.pugx.org/vjik/yii2-cycle-debug/v/stable.png)](https://packagist.org/packages/vjik/yii2-cycle-debug)
[![Total Downloads](https://poser.pugx.org/vjik/yii2-cycle-debug/downloads.png)](https://packagist.org/packages/vjik/yii2-cycle-debug)

![](https://i.ibb.co/18vqR14/yii2-cycle-debug.png)

## Installation

The preferred way to install this extension is through [composer](https://getcomposer.org/download/):

```
composer require vjik/yii2-cycle-debug --dev
```

Config logger in container:

```php
use yii\helpers\ArrayHelper;

'container' => [
'singletons' => ArrayHelper::merge(
require __DIR__ . '/../../vendor/vjik/yii2-cycle/config/common.php',
[
'DebugOrmLogger' => new \Vjik\Yii2\Cycle\Debug\LoggerFactory(),

]
),
],
```

Add logger to Cycle ORM config:

```php
'vjik/yii2-cycle' => [
'dbal' => [
'query-logger' => 'DebugOrmLogger',

],

],
```

Add panel to Debug config:

```php
'modules' => [
'debug' => [
'class' => \yii\debug\Module::class,
'panels' => [
'orm' => \Vjik\Yii2\Cycle\Debug\OrmPanel::class,
],
],

],
```