Skip to content

Repository files navigation

OpenDiscovery Denmark Provider

Danish national provider for OpenDiscovery, backed by ERST/CVR data.

Requirements

  • PHP 8.5+
  • Composer 2.x

Local development

composer install
cp .env.example .env
php artisan key:generate
php artisan serve

Tests

php artisan test
composer audit

Docker (FrankenPHP + Octane)

cp .env.example .env
php artisan key:generate
docker compose up --build

The app listens on http://localhost:18082.

Local stack (all services)

Run all four OpenDiscovery services together on host ports 18081–18084. Each repo uses the shared Docker network opendiscovery.

Prerequisite in each repo: cp .env.example .env && php artisan key:generate. Host .env supplies APP_KEY and CVR credentials via compose interpolation; app defaults come from config.

Start order (matches the deploy chain). root-provider creates the shared opendiscovery network; the others join it as external:

cd root-provider && docker compose up --build -d
cd ../dk-provider && docker compose up --build -d
cd ../resolver && docker compose up --build -d
cd ../website && docker compose up --build -d

Smoke URLs:

CVR lookups need real ERST_CVR_USER / ERST_CVR_PASS in .env.

Environment

Variable Description
DK_TTL Response TTL in seconds
ERST_CVR_USER CVR API username
ERST_CVR_PASS CVR API password

About

Authoritative Danish Business Service Provider

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages