inxilpro/address-standardizer

Formats a delivery address according to USPS addressing standards

1.0.2 2016-03-10 20:27 UTC

This package is auto-updated.

Last update: 2024-03-29 02:58:21 UTC


README

Based on Address Standardization Solution (PHP Edition)

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)