A PHP wrapper for the zip-tax.com API.
- An account on zip-tax.com
- PHP 5.6.0+
- libcurl
<?php
$zipTax = new supplyhog\ZipTax('YOUR_API_KEY');
try{
$response = $zipTax->request('37402', 'Chattanooga', 'TN');
if($response) {
echo $response['results'][0]['taxSales'];
}
}
catch(\Exception $e) {
echo $e->getMessage();
}
MIT © Vu Tran