PHP code example of viison / address-splitter
1. Go to this page and download the library: Download viison/address-splitter 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/ */
viison / address-splitter example snippets
var_dump(\VIISON\AddressSplitter\AddressSplitter::splitAddress('Pallaswiesenstr. 57B App. 235'));
array(4) {
["additionToAddress1"]=>
string(0) ""
["streetName"]=>
string(16) "Pallaswiesenstr."
["houseNumber"]=>
string(2) "57B"
["houseNumberParts"]=> array(2) {
["base"]=>
string(2) "57"
["extension"]=>
string(1) "B"
}
["additionToAddress2"]=>
string(8) "App. 235"
}