2017 © Pedro Peláez
 

yii2-extension yii2-def-code

Yii2 Def Code Module

image

ignatenkovnikita/yii2-def-code

Yii2 Def Code Module

  • Thursday, June 21, 2018
  • by ignatenkovnikita
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 8 % Grown

The README.md

yii2-def-code

Yii2 Def Code Module, (*1)

Install

composer require ignatenkovnikita/yii2-def-code:dev-master

Add to backend config, (*2)

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

Add to console config, (*3)

'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',
    ],
    ...
],

Apply Migration, (*4)

./console/yii migrate/create --migrationPath=vendor/ignatenkovnikita/yii2-def-code/migrations/  

Workflow load and import data: - Download files, command ```php ./console/yii def-code/download-all, (*5)

- After import files, command
```php
./console/yii def-code/import
  • Delete old files
./console/yii def-code/delete-old-files

Mnp download full and import, (*6)

./console/yii mnp/download
./console/yii mnp/import

Mnp download detail, date yesterday, advise run in hour night, (*7)

./console/yii mnp/download-detail
./console/yii mnp/import-detail

TODO - add test - refactoring, (*8)

The Versions

21/06 2018

dev-master

9999999-dev

Yii2 Def Code Module

  Sources   Download

BSD-3-Clause

The Requires

 

by Nikita Ignatenkov

extension yii2 module def defcode gsm info def code

03/04 2018

v1.1

1.1.0.0

Yii2 Def Code Module

  Sources   Download

BSD-3-Clause

The Requires

 

by Nikita Ignatenkov

extension yii2 module def defcode gsm info def code

24/03 2018

v1.0

1.0.0.0

Yii2 Def Code Module

  Sources   Download

BSD-3-Clause

The Requires

 

by Nikita Ignatenkov

extension yii2 module def defcode gsm info def code