Validate/Standardize addresses using USPS
- Install Apache on your local computer
- Install MySQL on your local computer
- Git Clone source code
git clone https://github.com/encoresky/mailing-address-validator.git
- Configure the database connection by editing the db.php
define("DB_HOST", "localhost");
define("DB_USERNAME", "");
define("DB_PASSWORD", "");
define("DB_NAME", "");
- Configure the USPS connection by editing the db.php
define("USPS_BASE_URL", "https://us-street.api.smartystreets.com/");
define("USPS_API", "street-address");
define("USPS_AUTH_ID", "ed764521-d73f-41dd-e8a6-ff74159fbc2e3434443");
define("USPS_AUTH_TOKEN", "bZoXjPoBFY2FOlA8ChIt333333");
define("USPS_LICENSE", "us-core-cloud-ddd");
define("USPS_CANDIDATES", "10");
define("USPS_MATCH", "enhanced");
- Access the web app vai below URL on local computer
http://localhost/mailing-address-validator