Skip to content

A PHP library to split an address street to street, number, box, ...

License

Notifications You must be signed in to change notification settings

kouinkouin/street-parser

Repository files navigation

Scrutinizer Code Quality Code Coverage Build Status

StreetParser

A PHP library to split an address street to street name, number, box, ...

Installation

$ composer require kouinkouin/street-parser

Usage

require __DIR__ . '/vendor/autoload.php';

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"

About

A PHP library to split an address street to street, number, box, ...

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages