{"id":20718685,"url":"https://github.com/os2web/os2web_datalookup","last_synced_at":"2026-04-18T20:02:33.299Z","repository":{"id":54201675,"uuid":"224609758","full_name":"OS2web/os2web_datalookup","owner":"OS2web","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-15T14:07:56.000Z","size":120,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":10,"default_branch":"8.x","last_synced_at":"2024-04-17T01:51:54.126Z","etag":null,"topics":[],"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/OS2web.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-28T08:51:45.000Z","updated_at":"2024-05-01T16:50:19.320Z","dependencies_parsed_at":"2024-05-01T17:00:29.360Z","dependency_job_id":null,"html_url":"https://github.com/OS2web/os2web_datalookup","commit_stats":{"total_commits":30,"total_committers":3,"mean_commits":10.0,"dds":0.5333333333333333,"last_synced_commit":"84c97e0b07b7c1a609806d64bfcb2418d613dad8"},"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OS2web%2Fos2web_datalookup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OS2web%2Fos2web_datalookup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OS2web%2Fos2web_datalookup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OS2web%2Fos2web_datalookup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OS2web","download_url":"https://codeload.github.com/OS2web/os2web_datalookup/tar.gz/refs/heads/8.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242995877,"owners_count":20218814,"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":[],"created_at":"2024-11-17T03:14:26.736Z","updated_at":"2026-04-18T20:02:33.241Z","avatar_url":"https://github.com/OS2web.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OS2Web Data lookup  [![Build Status](https://travis-ci.org/OS2web/os2web_datalookup.svg?branch=8.x)](https://travis-ci.org/OS2web/os2web_datalookup)\n## Install\n\nOS2Web Data lookup provides integration with Danish data lookup services such as Service platformen or Datafordeler.\nModule is available to download via composer.\n```\ncomposer require os2web/os2web_datalookup\ndrush en os2web_datalookup\n```\n\n## Update\nUpdating process for OS2Web Data lookup module is similar to usual Drupal 8 module.\nUse Composer's built-in command for listing packages that have updates available:\n\n```\ncomposer outdated os2web/os2web_datalookup\n```\n\n## Automated testing and code quality\nSee [OS2Web testing and CI information](https://github.com/OS2Web/docs#testing-and-ci)\n\n## Contribution\n\nProject is opened for new features and os course bugfixes.\nIf you have any suggestion or you found a bug in project, you are very welcome\nto create an issue in github repository issue tracker.\nFor issue description there is expected that you will provide clear and\nsufficient information about your feature request or bug report.\n\n### Code review policy\nSee [OS2Web code review policy](https://github.com/OS2Web/docs#code-review)\n\n### Git name convention\nSee [OS2Web git name convention](https://github.com/OS2Web/docs#git-guideline)\n\n### Using services in other modules\n\n```\n// CVR lookup\n/** @var \\Drupal\\os2web_datalookup\\Plugin\\DataLookupManager $pluginManager */\n$pluginManager = \\Drupal::service('plugin.manager.os2web_datalookup');\n/** @var \\Drupal\\os2web_datalookup\\Plugin\\os2web\\DataLookup\\DataLookupInterfaceCompany $cvrPlugin */\n$cvrPlugin = $pluginManager-\u003ecreateDefaultInstanceByGroup('cvr_lookup');\n\nif ($cvrPlugin-\u003eisReady()) {\n  $cvrResult = $cvrPlugin-\u003elookup($cvr);\n}\n\n// CPR lookup.\n/** @var \\Drupal\\os2web_datalookup\\Plugin\\DataLookupManager $pluginManager */\n$pluginManager = \\Drupal::service('plugin.manager.os2web_datalookup');\n/** @var \\Drupal\\os2web_datalookup\\Plugin\\os2web\\DataLookup\\DataLookupInterfaceCpr $cprPlugin */\n$cprPlugin = $pluginManager-\u003ecreateDefaultInstanceByGroup('cpr_lookup');\n\nif ($cprPlugin-\u003eisReady()) {\n  $cprResult = $cprPlugin-\u003elookup($cpr);\n}\n\n// CVR lookup - DEPRECATED.\n\\Drupal::service('plugin.manager.os2web_datalookup')-\u003ecreateInstance('serviceplatformen_cvr')-\u003egetLegalUnit('[CVR number]')\n\n\n// CPP lookup - DEPRECATED.\n\\Drupal::service('plugin.manager.os2web_datalookup')-\u003ecreateInstance('serviceplatformen_cpr')-\u003ecprBasicInformation('[CPR number]'))\n```\n\n## New services/features\n\n### Datafordeler integration (https://datafordeler.dk)\n\nIn scope of os2forms project already implemented light integration\nwith Danmarks Adresseregister (DAR) via fetching data for form elements\nautocomplete. See [os2forms_dawa submodule](https://github.com/OS2Forms/os2forms)\n\nAs soon as it is clear how the integration is going to be used, then\nos2forms_dawa will be refactored to OS2Web Data lookup plugin plugin.\n\n## Important notes\n### Serviceplatformen plugins\nSettings for CPR and CVR serviceplantormen plugins are storing as configuration\nin db and will(could) be exported as `yml` file via Drupal configuration\nmanagement system. And afterwards could be tracked by `git`.\n\nIf case you have public access to your git repository all setting from plugins\nwill be exposed for third persons.\n\nTo avoid/prevent this behavior we recommend use `Config ignore` module, where\nyou can add all settings you do not want to export/import via configuration\nmanagement system.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fos2web%2Fos2web_datalookup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fos2web%2Fos2web_datalookup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fos2web%2Fos2web_datalookup/lists"}