thetaxrate / ttr-php-composer
简单的销售税率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
本包的目的是通过Composer使与thetaxrate销售税率API的集成更加简便。
安装
通过Composer
$ composer require thetaxrate/ttr-php-composer
使用方法
最新文档可在网站文档找到
您需要从thetaxrate.com用户门户获取API令牌。
<?php namespace { use TheTaxRate\SalesTaxService; function main() { $service = new SalesTaxService('API_TOKEN'); $response = $service->getTaxRate('90210'); $saleTaxRate = $response->getRate(); } }
安全
如果您发现任何安全问题,请提交一个PR。
许可证
许可证。请参阅许可证文件以获取更多信息。