{"id":22568412,"url":"https://github.com/nullrefexcep/yii2-documents","last_synced_at":"2026-04-24T21:33:44.797Z","repository":{"id":57029289,"uuid":"131000212","full_name":"NullRefExcep/yii2-documents","owner":"NullRefExcep","description":"Module for document processing (import/export)","archived":false,"fork":false,"pushed_at":"2019-08-01T11:41:48.000Z","size":211,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-02T14:14:16.225Z","etag":null,"topics":["workers","yii2","yii2-documents"],"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/NullRefExcep.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":"2018-04-25T12:04:28.000Z","updated_at":"2019-08-01T11:41:49.000Z","dependencies_parsed_at":"2022-08-23T16:30:16.674Z","dependency_job_id":null,"html_url":"https://github.com/NullRefExcep/yii2-documents","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullRefExcep%2Fyii2-documents","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullRefExcep%2Fyii2-documents/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullRefExcep%2Fyii2-documents/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullRefExcep%2Fyii2-documents/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NullRefExcep","download_url":"https://codeload.github.com/NullRefExcep/yii2-documents/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246041444,"owners_count":20714138,"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":["workers","yii2","yii2-documents"],"created_at":"2024-12-08T00:13:07.093Z","updated_at":"2026-04-24T21:33:44.771Z","avatar_url":"https://github.com/NullRefExcep.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Yii2 Documents\n===============\n\nWIP\n\nModule for processing documents\n\nIntroducing\n-----------\n\nThis module allows you create own document's workers with few levels of customization:\n - worker code\n - worker instance \n - document instance\n\n\nAll workers run under default yii2 [queue](https://github.com/yiisoft/yii2-queue)\n\n\nInstallation\n------------\n\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).\n\nEither run\n\n```\nphp composer.phar require --prefer-dist nullref/yii2-documents \"*\"\n```\n\nor add\n\n```\n\"nullref/yii2-documents\": \"*\"\n```\n\nto the require section of your `composer.json` file.\n\nThen you have run console command for install this module and run migrations:\n\n```\nphp yii module/install nullref/yii2-documents\n```\n\nThis command will add current module to config/installed_modules.php file.\n\nThis file need be included in application config.\n\nIf you don't want to use `module/install` command that you could add module to you application config manually:\n\n```php\n'modules' =\u003e [\n    //...\n    'documents' =\u003e [\n        'class' =\u003e nullref\\documents\\Module::class,\n    ],\n    //...\n],\n```\n\nThan you need run \n```\nphp yii modules-migrate --moduleId=documents\n```\n\nAlso, you have install [yiisoft/yii2-queue](https://github.com/yiisoft/yii2-queue) following it own manual.\n\n\nConfiguration\n-------------\n\nAfter installation you need create own classes that implement export/import logic.\n\nFor example you can check demo folder.\n\nAfter creating document worker you need register it in module config:\n\n\n```php\n    'documents' =\u003e [\n        'class' =\u003e nullref\\documents\\Module::class,\n        'importers' =\u003e [\n            // List of importer classes\n            'catalog' =\u003e [\n                'class' =\u003e \\app\\components\\importers\\CatalogImporter::class,\n            ],\n        ],\n        'exporters' =\u003e [\n            // List of exporter classes\n            'total' =\u003e [\n                'class' =\u003e app\\components\\exporters\\TotalExporter::class,\n            ],\n        ],\n    ],\n```\n\nUsage\n-----\n\nPlease, check [docs](https://github.com/NullRefExcep/yii2-documents/blob/master/docs/index.md) and [demo](https://github.com/NullRefExcep/yii2-documents/tree/master/demo) for more info.\n\nCustomization\n-------------\n\nAnd [translations](https://github.com/NullRefExcep/yii2-core#translation-overriding)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullrefexcep%2Fyii2-documents","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnullrefexcep%2Fyii2-documents","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullrefexcep%2Fyii2-documents/lists"}