Skip to content

Repository files navigation

OpenDiscovery Resolver

Resolves OpenDiscovery business IDs by coordinating root and national providers.

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:18083.

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 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:

dk-provider CVR lookups need real ERST_CVR_USER / ERST_CVR_PASS in .env.

Environment

Variable Description
PROVIDER_ROOT Comma-separated root provider URLs
RESOLVER_TTL_MIN Minimum cache TTL (seconds)
RESOLVER_TTL_MAX Maximum cache TTL (seconds)
RESOLVER_TTL_DEFAULT Default cache TTL (seconds)

About

Get information about a business entity using its Business ID as a key

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages