simple api implementation to get geo coordinates from postcodes over ziplocate.us
In the require
key of composer.json
file add the following
"ins0/php-simple-ziplocate": "dev-master"
Run the Composer update command
$ composer update
$postcode = \ZipLocate::fromZipCode(80302);
if( $postcode !== false )
{
echo $postcode->getLat();
echo $postcode->getLng();
echo $postcode->getZip();
}