api-postcode/php-client
PHP client for api-postcode.nl to look up Dutch address details by postcode and house number. Install via Composer, create a PostcodeClient with your token, and fetch street, city, house number, zip code, latitude, and longitude.
A PHP client for fetching address detials from https://api-postcode.nl
Installation is a quick step process:
$ composer require api-postcode/php-client
$token = 'secret-token';
$client = new ApiPostcode\Client\PostcodeClient($token);
$address = $client->fetchAddress('1082MD', 34);
$address->getStreet(); // Claude Debussylaan
$address->getCity(); // Amsterdam
$address->getHouseNumber(); // 34
$address->getZipCode(); // 1082MD
$address->getLatitude(); // 52.3377074
$address->getLongitude(); // 4.8719565
How can I help you explore Laravel packages today?