inxilpro / address-standardizer
Formats a delivery address according to USPS addressing standards
1.0.2
2016-03-10 20:27 UTC
Requires
- php: >=5.3.0
Requires (Dev)
- phpunit/phpunit: ^5.1
This package is auto-updated.
Last update: 2024-10-29 04:31:07 UTC
README
This library helps format a delivery address according to USPS addressing standards. Useful for normalizing addresses for caching (best when used with a 3rd-party solution).
Usage
$standardizer = new \Galahad\AddressStandardizer\AddressStandardizer(); $address = $standardizer->standardize('1600 Pennsylvania Avenue NW Washington, DC 20500 US'); echo $address; // 1600 PENNSYLVANIA AVE NW WASHINGTON DC 20500 US
Changelog
- 1.0.0 Initial refactor (namespaced, cleaned up naming, composer, etc)