PHP code example of chabter / laravel-dutch-postalcode-lookup
1. Go to this page and download the library: Download chabter/laravel-dutch-postalcode-lookup library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
chabter / laravel-dutch-postalcode-lookup example snippets
PostalCodeLookupService::lookup('1012JS');
PostalCodeLookupService::lookup('1012JS', 1);
PostalCodeLookupService::lookup('1012JS', '5B');
$address->getPostalCode() => '1012JS';
$address->getHouseNumber() => 1; // or string including housenumber extension
$address->getStreet() => 'Dam';
$address->getCity() => 'Amsterdam';