Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Address Abbreviation

Abbreviate address components while preserving their meaning to accommodate systems with limited address length.

Installation

composer require dmt-software/address-abbreviation

Usage

use DMT\Address\Abbreviation\Dutch\Street\TypeNameAbbreviator;

$abbreviator = new TypeNameAbbreviator();
print $abbreviator->abbreviate('Jan Maurits van Nassaustraat'); 

// outputs: Jan Maurits van Nassaustr

Configured sets

use DMT\Address\Abbreviation\AbbreviationGroupFactory;

$abbreviator = (new AbbreviationGroupFactory())->getNen5825AbbreviationGroup();
print $abbreviator->abbreviate('Burgemeester W. van Eertenstraat');

// outputs: Burg W van Eertenstraat (according to NEN 5825:2002)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages