thetaxrate/ttr-php-composer

Simple Sales Tax Rate API

v1.0.0 2022-01-02 19:15 UTC

This package is auto-updated.

Last update: 2025-07-04 09:38:12 UTC


README

The purpose of this package is to make integration with thetaxrate sales tax api multi easier with composer.

Installation

Via Composer

$ composer require thetaxrate/ttr-php-composer

Usage

Latest Documentation Can be found at Site Documentation

You will need to Obtain an API token from thetaxrate.com users portal.

<?php

namespace {
    use TheTaxRate\SalesTaxService;

    function main() {
        $service = new SalesTaxService('API_TOKEN');
        $response = $service->getTaxRate('90210');
        $saleTaxRate = $response->getRate();
    }
}

Security

If you discover any security related issues, please submit a PR.

License

license. Please see the license file for more information.