PHP code example of treehouselabs / address-parser
1. Go to this page and download the library: Download treehouselabs/address-parser 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/ */
treehouselabs / address-parser example snippets
$parser = new \TreeHouse\AddressParser\AddressParser();
$result = $parser->parse('Willembuytechweg 45');
var_dump($result);
array(3) {
'street' =>
string(16) "Willembuytechweg"
'number' =>
string(2) "45"
'address' =>
string(19) "Willembuytechweg 45"
}