Skip to content

itk-dev/os2forms_cvr_lookup

Repository files navigation

OS2Forms CVR Lookup

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages