PHP code example of jalbrecht / ziptax

1. Go to this page and download the library: Download jalbrecht/ziptax library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jalbrecht / ziptax example snippets


$zipTax = new vutran\ZipTax('YOUR_API_KEY');

$rate = $zipTax->request('90210');

echo $rate->results[0]->taxSales;