PHP Classes


Recommend this page to a friend!
  Classes of Jason Olson   PHP USPS API Address Validation   Download  
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP USPS API Address Validation
Get the details of a given address using USPS API
Author: By
Last change: Update of
Date: 4 months ago
Size: 815 bytes


Class file image Download


This CLASS is designed to take advantage of the USPS API for looking up the corrected (normalized) address for a given physical address. There is very little examples of implementing the USPS API in PHP.


When you instantiate the class, include the API key. See the example.php file for usage. If you don't have a valid API, you can get one free at

Revision History:

  • 1.0 Initial Release
  • 1.1 Bugfix 500 error.
  • 2.0 Updated for new USPS API V3 & PHP 8 coding standards

This code was written by request by another developer on because Streetlayers is going away very soon.


GNU General Public License v3.0 (GNU GPLv3)