ar-ras / bea-cukai
Code Reusability 课程最终项目
v1.2.0
2022-12-07 07:25 UTC
Requires
- php: >=7.4
README
本包是一个用于计算进口商品税的软件,其功能是简化用户在交易国外商品时的交易
功能
- 计算商品税
- 计算PPNBM
- 计算PPN
- 计算PPH
安装
使用composer安装包
composer require ar-ras/bea-cukai composer install
使用/示例
$myPrice = $insuranceCost = $shipmentCost = $goodsCost = 0; $entryTax = $ppn = $ppnBm = $pph = 0; Configurator::setPphJsonPath('C:\xampp\htdocs\beacukai\vendor\ar-ras\bea-cukai\database\pph.json'); Configurator::setPphJsonContent(); $myProduct = new Product(); $myProduct->setPrice($goodsCost); $myProduct->setEntryTax($entryTax); $myProduct->setPpn($ppn); $myProduct->setPpnBm($ppnBm); $taxCalc = new CalculateTax($myProduct); $taxCalc->calculateCIF($insuranceCost, $shipmentCost); $taxCalc->calculatePDRI($pph); $myPrice = $taxCalc->calculateTotal();
常见问题解答
从这个包中我能得到什么?
使用这个包,用户可以知道经过计算并加上了适用税率的进口商品的总价
使用这个包需要付费吗?
不需要,这个包是免费使用的(免费使用)