PHPackages                             itk-dev/os2forms\_cpr\_lookup - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. itk-dev/os2forms\_cpr\_lookup

ActiveDrupal-module[API Development](/categories/api)

itk-dev/os2forms\_cpr\_lookup
=============================

Provides integration to CPR service provided by Serviceplatformen.

1.8.0(3y ago)02.4k[2 issues](https://github.com/itk-dev/os2forms_cpr_lookup/issues)[2 PRs](https://github.com/itk-dev/os2forms_cpr_lookup/pulls)MITPHP

Since Jun 9Pushed 3y ago1 watchersCompare

[ Source](https://github.com/itk-dev/os2forms_cpr_lookup)[ Packagist](https://packagist.org/packages/itk-dev/os2forms_cpr_lookup)[ RSS](/packages/itk-dev-os2forms-cpr-lookup/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (10)Dependencies (9)Versions (27)Used By (0)

OS2Forms CPR Lookup
===================

[](#os2forms-cpr-lookup)

Query the Danish for CPR register for Drupal Webforms. This module uses the service [SF1520](https://digitaliseringskataloget.dk/integration/sf1520) from Serviceplatformen. Information and documentation can be obtained by following the link.

Installation
------------

[](#installation)

Require it with composer:

```
composer require "itk-dev/os2forms_cpr_lookup"
```

Enable it with drush:

```
drush pm:enable os2forms_cpr_lookup
```

Add the following configuration:

```
$config['os2forms_cpr_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/person-base-data-extended-service-contract/wsdl/context/PersonBaseDataExtendedService.wsdl',
];
```

Usage
-----

[](#usage)

This module provides functionality for querying the danish CPR register and showing the result in webforms.

This can be done in two ways:

1. By adding a query element which when changed performs a query and populates other elements with the result.
2. By requiring personal NemLog-in login on the form (set Edit form &gt; Settings &gt; Third party settings &gt; OS2Forms &gt; OS2Forms NemID settings &gt; Webform type to “Personal”) and having elements pre-filled based on data fetched from the CPR service.

**Note**: You cannot use both methods on the same form, i.e. you cannot have some elements filled by a dynamic lookup based on an “CPR Element” and have other elements filled based on an authenticated users’ data.

The elements provided:

- CPR Element - Element which queries the Danish CPR register when changed.
- CPR Name Element - This is populated with the name from the above mentioned query result.
- CPR Address Element - This is populated with the address from the result.
- CPR Street Element - This is filled with the name of the street from the result.
- CPR House Number Element - This is filled with the house number from the result.
- CPR Side Element - This is filled with the side from the result.
- CPR Floor Element - This is filled with the floor from the result.
- CPR Postal Code Element - This is filled with the postal code from the result.
- CPR City Element - This is filled with the city from the result.

Coding standards
----------------

[](#coding-standards)

Check coding standards (run `composer install` to install the required tools):

```
composer coding-standards-check
```

Apply coding standards:

```
composer coding-standards-apply
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 50.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~33 days

Total

22

Last Release

1098d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/33924554?v=4)[ITK Development](/maintainers/itk-dev)[@itk-dev](https://github.com/itk-dev)

---

Top Contributors

[![lats1](https://avatars.githubusercontent.com/u/48216125?v=4)](https://github.com/lats1 "lats1 (56 commits)")[![rimi-itk](https://avatars.githubusercontent.com/u/11267554?v=4)](https://github.com/rimi-itk "rimi-itk (41 commits)")[![martinyde](https://avatars.githubusercontent.com/u/545272?v=4)](https://github.com/martinyde "martinyde (10 commits)")[![jekuaitk](https://avatars.githubusercontent.com/u/78410897?v=4)](https://github.com/jekuaitk "jekuaitk (2 commits)")[![perthaarhus](https://avatars.githubusercontent.com/u/13046592?v=4)](https://github.com/perthaarhus "perthaarhus (1 commits)")

### Embed Badge

![Health badge](/badges/itk-dev-os2forms-cpr-lookup/health.svg)

```
[![Health](https://phpackages.com/badges/itk-dev-os2forms-cpr-lookup/health.svg)](https://phpackages.com/packages/itk-dev-os2forms-cpr-lookup)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[fschmtt/keycloak-rest-api-client-php

PHP client to interact with Keycloak's Admin REST API.

4684.7k2](/packages/fschmtt-keycloak-rest-api-client-php)[synolia/sylius-akeneo-plugin

Akeneo connector for Sylius.

2696.0k](/packages/synolia-sylius-akeneo-plugin)[webgriffe/sylius-akeneo-plugin

Plugin allowing to import products data from Akeneo PIM to your Sylius store.

2477.8k](/packages/webgriffe-sylius-akeneo-plugin)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
