PHP code example of mrssoft / yii2-deny-trash

1. Go to this page and download the library: Download mrssoft/yii2-deny-trash 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/ */

    

mrssoft / yii2-deny-trash example snippets


'components' => [
    ...
    'log' => [
        'targets' => [
        [
            'class' => 'mrssoft\denytrash\DenyTrashTarget',
            'levels' => ['error'],
            'serverType' => 'Apache',
            'excludeIp' => ['195.206.45.15'],
            'enabled' => true,
        ],
   ]
   ....
]

php composer.phar