jaggedjax / address-standardizer
Formats a delivery address according to USPS addressing standards
v1.1.1
2025-07-30 00:55 UTC
Requires
- php: >=8.0.0
Requires (Dev)
- phpunit/phpunit: ^12.1
This package is auto-updated.
Last update: 2025-07-30 00:56:21 UTC
README
This library helps format a delivery address according to USPS addressing standards. Useful for normalizing addresses for caching.
Recommended only on Street Lines, not full address! US Addresses only!
Usage
use JaggedJax\AddressStandardizer\Address; $address = Address::standardize('1600 Pennsylvania Avenue'); echo $address; // 1600 PENNSYLVANIA AVE
Changelog
- 1.1.1 Transliterate Euro chars to US ASCII equivalent rather than dropping them
- 1.1.0 Make it static and add initial typing
- 1.0.0 Initial refactor (namespaced, cleaned up naming, composer, etc)