dmt-software/address-abbreviation

Abbreviate addresses while keeping the meaning intact.

Maintainers

Package info

github.com/dmt-software/address-abbreviation

pkg:composer/dmt-software/address-abbreviation

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 1

1.0.1 2026-06-03 09:04 UTC

This package is auto-updated.

Last update: 2026-06-04 09:02:00 UTC


README

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)