Smarty PHP SDK

If you want to access our US Street Address API or US ZIP Code API from an application written in the PHP programming language, the Smarty PHP SDK can make it a lot easier. Our PHP SDK includes ready-made data structures and takes care of all the gritty, low-level HTTP intricacies for you.


  1. Requirements
  2. How to Get It
    1. Composer
    2. Download the Source Code
  3. How to Use It
    1. Demo
    2. Examples


  1. Decide to build a software project using PHP.
  2. Download and install PHP 5.6 or higher.
  3. Build enough of the project to realize that you now need an address verification component.
  4. Wisely conclude that you don't want to build your own address verification component.
  5. Realize that Smarty has already created an address verification component.
  6. Congratulations! You are now ready to use the Smarty PHP SDK.

How to Get It


The easiest way to install this SDK is by using Composer.

Once you've downloaded Composer and initialized a composer.json file in your project, add

"require": {
	"smartystreets/phpsdk": "1.0.2"

to the "require" section.

Download the Source Code

You can find source code of the Smarty PHP SDK repository on Github which contains many sample code snippets.

Use the source, Luke!

How to Use It



Here are a few examples showing how to use the PHP SDK:

Ready to get started?