Releases: zerodahero/address-normalization
3.0.1
What's Changed
- Handle when a unit prefix is absent by @AidanKneller in #3
New Contributors
- @AidanKneller made their first contribution in #3
Full Changelog: 3.0.0...3.0.1
3.0.0
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
- @SushanTiwari made their first contribution in #2
Full Changelog: 2.1.1...3.0.0
2.1.1
allow null zip for parse 5 part
2.1.0
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
Added helpers for static methods. Can now call SimpleAddress::hashFromParts(...)
2.0.4
Added SimpleAddress to leverage hashing for a pre-normalized address.
2.0.3
Dropped some versions to support php 7.1.
(There was no explicit reason for needed the absolute latest version of phpunit)
2.0.2
Added hash without zip: $address->getHash()
2.0.1
up'd composer json
2.0.0
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.