Skip to content

dmt-software/address-abbreviation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 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

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages