Skip to content

renaudk/arcep-api-box-tester

Repository files navigation

Prerequisites

  • ISP identification is handled by GeoIP by Maxmind, therefore Maxmind GeoIP2 or GeoLite database is required (GeoLite-ASN or GoIP2-ISP).
  • PHP extensions : curl, json

Quick start

Install dependencies with Composer

php composer.phar update

Create and customize .env files

cp .env.example .cap.env
cp .env.example .staging.env 
cp .env.example .production.env  

Create and customize JSON config files

cp api-credentials.json.example api-credentials.cap.json
cp api-credentials.json.example api-credentials.staging.json
cp api-credentials.json.example api-credentials.production.json

Set HTTP Document Root to

<PROJECT>/public/

IP Info service

Setup 2 DNS entries, one A and one AAAA

ipv4.yourdomain.tld     IN  A       X.X.X.X
ipv6.yourdomain.tld     IN  AAAA    xx:xx:xx::y

Setup HTTP server Document Root for these domains to

<PROJECT>/ipinfo/

Adapt ipinfo.json config file to your needs

cp ipinfo.json.example ipinfo.json