PHP code example of tomsh-hr / yii2-eruda

1. Go to this page and download the library: Download tomsh-hr/yii2-eruda library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

tomsh-hr / yii2-eruda example snippets


php composer.phar 

 tomsh\eruda\Eruda::widget(); 

 tomsh\eruda\Eruda::widget([
    'clientOptions' => [
        'container' => 'erudaElement', // ID of an element (this is not same as in eruda configuration)
        'tool' => ['console', 'elements']
    ],
    'onlyByUrl' => false, // Optional, default true
    'urlGetter' => 'eruda', // Optional, default 'eruda'
    'onlyInDev' => false // Optional, default false
]);