|Last Updated|| ||Ratings|| ||Unique User Downloads|| ||Download Rankings|
|2019-03-06 (4 months ago) ||Not yet rated by the users||Total: 103 ||All time: 9,156 This week: 218|
This package is specific mainly for applications used in United States
This class can Get the zip code of a given location with USPS API.
It can send a HTTP request to the USPS API Web server to request the zip code for a given physical address in the United States.
The class can parse the response and return the zip code that was found for that address.
|Many applications that deal with addresses of people or companies need to know the addresses where they are located, so they can send them postal mail or parcels.
One of the details that is necessary to know about an address is the zip code.
This class can determine the zip code of a given location using the street address and city and the USPS API to find out the zip code of location in the United States.
This CLASS is designed to take advantage of the USPS API for looking up the zip code 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 USPS.com API, you can get one free at https://www.usps.com/business/web-tools-apis/welcome.htm
- 1.0 Initial Release
- 1.1 Moved into its own namespace, api key defined when class is instantiated, moved the sample code into it's own file.
This is also a test for me as this is the first time I've developed code in the public using git. Most code has been for private repositories. This testing will be integrated with phpStorm.
GNU General Public License v3.0 (GNU GPLv3)
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.