itk-dev / os2forms_cvr_lookup
Provides integration to CVR service provided by Serviceplatformen.
Installs: 2 174
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 4
Type:drupal-module
Requires
- ext-soap: *
- http-interop/http-factory-guzzle: ^1.0.0
- itk-dev/serviceplatformen: ^1.3
- php-http/guzzle6-adapter: ^2.0.1
- symfony/property-access: ^4.4
Requires (Dev)
This package is auto-updated.
Last update: 2024-12-09 12:33:17 UTC
README
Query the Danish CVR register for Drupal Webforms.
Service: https://digitaliseringskataloget.dk/integration/sf1530
Installation
Require it with composer:
composer require "itk-dev/os2forms_cvr_lookup"
Enable it with drush:
drush pm:enable os2forms_cvr_lookup
Add the following configuration:
$config['os2forms_cvr_lookup'] = [ 'azure_tenant_id' => '', 'azure_application_id' => '', 'azure_client_secret' => '', 'azure_key_vault_name' => '', 'azure_key_vault_secret' => '', 'azure_key_vault_secret_version' => '', 'service_agreement_uuid' => '', 'user_system_uuid' => '', 'user_uuid' => '', 'service_uuid' => '', 'service_endpoint' => '', 'service_contract' => dirname(DRUPAL_ROOT) . '/vendor/itk-dev/serviceplatformen/resources/online-service-contract/wsdl/context/OnlineService.wsdl', ];
Usage
This module provides functionality for querying the danish CVR register and showing the result. In general terms you use it by adding a query element, which when changed performs a query and populates other elements with the result.
The elements provided:
- CVR Element - Element which queries the Danish CVR register when changed.
- CVR Name Element - This is populated with the name from the above mentioned query result.
- CVR Street Element - This is filled with the name of the street from the result.
- CVR House Number Element - This is filled with the house number from the result.
- CVR Postal Code Element - This is filled with the postal code from the result.
- CVR City Element - This is filled with the city from the result.
Coding standards
Run phpcs with the provided configuration:
composer coding-standards-check // Apply coding standards composer coding-standards-apply