thetaxrate/ttr-php-composer

简单的销售税率API

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

This package is auto-updated.

Last update: 2024-09-04 07:52:21 UTC


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。

许可证

许可证。请参阅许可证文件以获取更多信息。