PHP code example of execut / yii2-javascript-handler

1. Go to this page and download the library: Download execut/yii2-javascript-handler 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/ */

    

execut / yii2-javascript-handler example snippets


return [
    'modules' => [
        'javascriptHandler' => [
            'class' => Module::class,
        ]
    ],
];

echo \execut\javascriptHandler\JavascriptHandlerWidget::widget([
    'clientOptions' => [
        'test' => true,// delete this line for stopping sending a test exception
    ],
]);

$ php composer.phar