PHP code example of ignatenkovnikita / yii2-def-code

1. Go to this page and download the library: Download ignatenkovnikita/yii2-def-code 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/ */

    

ignatenkovnikita / yii2-def-code example snippets


'defcode' => [
    'class' => 'ignatenkovnikita\defcode\Module',
    'controllerNamespace' => \ignatenkovnikita\defcode\Module::backendControllerNamespace(),
    'viewPath' => '@vendor/ignatenkovnikita/yii2-def-code/backend/views',
],

'bootstrap' => ['def-code']
'modules' => [
    ...
    'def-code' => [
        'class' => \ignatenkovnikita\defcode\Module::class,
        'listUrl' => [
            DefCode::TYPE_ABC9 => 'https://rossvyaz.ru/data/DEF-9xx.csv',
        ],
        'smscLogin' => 'SMSC_LOGIN',
        'smscPassword' => 'SMSC_PASSWORD',
    ],
    ...
],

./console/yii def-code/download-all

./console/yii def-code/import

./console/yii def-code/delete-old-files