api-postcode / php-client
PHP Client Api Postcode
Installs: 35 059
Dependents: 2
Suggesters: 0
Security: 0
Stars: 9
Watchers: 3
Forks: 3
Open Issues: 1
Type:client
Requires
- php: >=7.1.0
- ext-json: *
This package is not auto-updated.
Last update: 2024-12-14 02:54:32 UTC
README
A PHP client for fetching address detials from https://api-postcode.nl
Installation
Installation is a quick step process:
- Download the client with composer
Step 1: Download php-client using composer
$ composer require api-postcode/php-client
Usage
$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