{"id":15282357,"url":"https://github.com/ignatenkovnikita/yii2-def-code","last_synced_at":"2026-05-07T14:46:24.519Z","repository":{"id":56989424,"uuid":"105897357","full_name":"ignatenkovnikita/yii2-def-code","owner":"ignatenkovnikita","description":"Yii2 Def Code Module","archived":false,"fork":false,"pushed_at":"2021-01-23T22:23:35.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-28T22:49:47.515Z","etag":null,"topics":["defcode","yii2-component","yii2-extension","yii2-modules"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ignatenkovnikita.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-05T14:05:37.000Z","updated_at":"2021-01-23T22:23:37.000Z","dependencies_parsed_at":"2022-08-21T12:20:48.956Z","dependency_job_id":null,"html_url":"https://github.com/ignatenkovnikita/yii2-def-code","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ignatenkovnikita%2Fyii2-def-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ignatenkovnikita%2Fyii2-def-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ignatenkovnikita%2Fyii2-def-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ignatenkovnikita%2Fyii2-def-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ignatenkovnikita","download_url":"https://codeload.github.com/ignatenkovnikita/yii2-def-code/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245136352,"owners_count":20566586,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["defcode","yii2-component","yii2-extension","yii2-modules"],"created_at":"2024-09-30T14:25:18.630Z","updated_at":"2025-10-17T11:31:35.040Z","avatar_url":"https://github.com/ignatenkovnikita.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yii2-def-code\nYii2 Def Code Module\n\n### Install\n\n```bash\ncomposer require ignatenkovnikita/yii2-def-code:dev-master\n```\n\n\nAdd to backend config\n```php\n'defcode' =\u003e [\n    'class' =\u003e 'ignatenkovnikita\\defcode\\Module',\n    'controllerNamespace' =\u003e \\ignatenkovnikita\\defcode\\Module::backendControllerNamespace(),\n    'viewPath' =\u003e '@vendor/ignatenkovnikita/yii2-def-code/backend/views',\n],\n```\n\nAdd to console config\n```php\n'bootstrap' =\u003e ['def-code']\n'modules' =\u003e [\n    ...\n    'def-code' =\u003e [\n        'class' =\u003e \\ignatenkovnikita\\defcode\\Module::class,\n        'listUrl' =\u003e [\n            DefCode::TYPE_ABC9 =\u003e 'https://rossvyaz.ru/data/DEF-9xx.csv',\n        ],\n        'smscLogin' =\u003e 'SMSC_LOGIN',\n        'smscPassword' =\u003e 'SMSC_PASSWORD',\n    ],\n    ...\n],\n```\n\nApply Migration\n\n```bash\n./console/yii migrate/create --migrationPath=vendor/ignatenkovnikita/yii2-def-code/migrations/  \n```\n\nWorkflow load and import data:\n- Download files, command \n ```php\n./console/yii def-code/download-all\n```\n- After import files, command\n```php\n./console/yii def-code/import\n```\n- Delete old files\n```php\n./console/yii def-code/delete-old-files\n```\n\nMnp download full and import\n```bash\n./console/yii mnp/download\n./console/yii mnp/import\n```\nMnp download detail, date yesterday, advise run in hour night\n```bash\n./console/yii mnp/download-detail\n./console/yii mnp/import-detail\n```\n\n\nTODO\n- add test\n- refactoring\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fignatenkovnikita%2Fyii2-def-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fignatenkovnikita%2Fyii2-def-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fignatenkovnikita%2Fyii2-def-code/lists"}