jaggedjax/address-standardizer

Formats a delivery address according to USPS addressing standards

v1.1.1 2025-07-30 00:55 UTC

This package is auto-updated.

Last update: 2025-07-30 00:56: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.

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)