thetaxrate / ttr-php-composer
Simple Sales Tax Rate API
v1.0.0
2022-01-02 19:15 UTC
Requires
- php: >=7.3.0||^8.0
- guzzlehttp/guzzle: 6.*||7.*
- psr/http-client: ^1.0.1
- psr/http-message: ^1.0
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.