Skip to content

Releases: zerodahero/address-normalization

3.0.1

22 Feb 21:23
cb48d58

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 3.0.0...3.0.1

3.0.0

30 Jan 20:52

Choose a tag to compare

What's Changed

  • Updates dependencies and CI to monitor for deprecations and PHP 8+ support
  • Fix Deprecation warning for php 8 by @SushanTiwari in #2

New Contributors

Full Changelog: 2.1.1...3.0.0

2.1.1

20 Jan 22:27

Choose a tag to compare

allow null zip for parse 5 part

2.1.0

08 Jan 20:40

Choose a tag to compare

Added in strict mode parsing. Now, you can parse from a 5-part address. The normalizer can be set to strict mode to return false on failed normalization (default) or with strict mode off, the 5-part parse will return a simple address object. The primary use case is when you have strange (but presumably correct) formatting that may trick the normalizer (like extra commas or duplicate unit info), but would still like to hash or use the output methods.

$normalizer = new Normalizer(['strict_mode' => false]);
// returns an Address if normalized or Simple Address if normalization fails
$address = $normalizer->parseFromComponents($address1, $address2, $city, $state, $zip); 
$normalizer = new Normalizer(['strict_mode' => true]); // or omit, strict mode on is the default
// returns an Address if normalized or false if normalization fails
$address = $normalizer->parseFromComponents($address1, $address2, $city, $state, $zip); 

2.0.5

04 Dec 19:10

Choose a tag to compare

Added helpers for static methods. Can now call SimpleAddress::hashFromParts(...)

2.0.4

04 Dec 19:01

Choose a tag to compare

Added SimpleAddress to leverage hashing for a pre-normalized address.

2.0.3

26 Nov 23:18

Choose a tag to compare

Dropped some versions to support php 7.1.

(There was no explicit reason for needed the absolute latest version of phpunit)

2.0.2

19 Nov 16:27

Choose a tag to compare

Added hash without zip: $address->getHash()

2.0.1

18 Nov 16:28

Choose a tag to compare

up'd composer json

2.0.0

18 Nov 15:57

Choose a tag to compare

Release 2.0.0 alters the normalization class into a normalizer class which returns an address object. It adds support for hash comparison; string, array, and component (associative array) formatting/output. See updated README for usage info.