dataconnect/dataconnect-api

PHP client for the DataConnect API

Maintainers

Package info

gitlab.com/dataconnect-packages/dataconnect-api

Issues

pkg:composer/dataconnect/dataconnect-api

Statistics

Installs: 10

Dependents: 0

Suggesters: 0

Stars: 0

1.0.1 2026-06-30 22:23 UTC

This package is auto-updated.

Last update: 2026-06-30 20:24:45 UTC


README

PHP client for the DataConnect API.

Requirements

dataconnect-api requires PHP 8.1 or above.

Installation

Can be installed with Composer.

composer require dataconnect/dataconnect-api

Usage

use DataConnectApi\DataConnectApiClient;
use DataConnectApi\DataConnectApiException;

$client = new DataConnectApiClient('live_xxxxxxxx...');

try {
    $address = $client->address('1012AB', 1);

    echo "Straat: {$address['straat']}";
    echo "Plaats: {$address['plaats']}";
    echo "Gemeente: {$address['gemeente']}";
    echo "Provincie: {$address['provincie']}";
} catch (DataConnectApiException $e) {
    echo 'Error: ' . $e->getMessage();
}

With toevoeging

$address = $client->address('1012AB', 1, 'A');

Custom base URL

$client = new DataConnectApiClient('live_xxxxxxxx...', 'https://api-staging.dataconnect.nl');

Available methods

MethodDescription
address(postcode, huisnummer, toevoeging?)Lookup an address by postcode and house number

Support

Want to support our work? A donation is very welcome: https://buymeacoffee.com/dataconnect

Contact

Please feel free to contact us, to add options if possible!