api-postcode/php-client

PHP Client Api Postcode
60,539 9
Install
composer require api-postcode/php-client
Latest Version:1.0.4
PHP:>=7.1.0
License:MIT
Last Updated:Mar 16, 2022
Links: GitHub  ·  Packagist
Maintainer: api-postcode

Api Postcode PHP Client

A PHP client for fetching address detials from https://api-postcode.nl

Installation

Installation is a quick step process:

  1. 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

Related Packages

bunches/postcode

A PHP package for handling and formatting UK postcodes.

5,184 0
brick/postcode

A library to format and validate postcodes

2,152,967 87
dannyvw/laravel-postcodenl

http://api.postcode.nl integration in Laravel

1,473 3
matthewbdaly/laravel-postcodes

A Laravel and Lumen integration for matthewbdaly/postcode-client to enable postc...

36 1
vasildakov/postcode

UK Postcode ValueObject

358,313 3

Version History

Version Released PHP License
1.0.4 >=7.1.0 MIT
1.0.3 >=7.1.0 MIT
1.0.2 >=5.5.9 MIT
1.0.1 >=5.5.9 MIT
1.0.0 >=5.5.9 MIT