PHP code example of kouinkouin / street-parser

1. Go to this page and download the library: Download kouinkouin/street-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/ */

    

kouinkouin / street-parser example snippets




use kouinkouin\StreetParser\StreetParser;

$streetParser = new StreetParser();
$street = $streetParser->getStreetDataFromFullStreet('Rue du grand Duc, 13/B1');
var_dump($street->getName()); // string(16) "Rue du grand Duc"
var_dump($street->getNumber()); // string(2) "13"
var_dump($street->getBox()); // string(2) "B1"