jonczek/tax-de
Composer 安装命令:
composer require jonczek/tax-de
包简介
Tax library for german tax calculation.
README 文档
README
Tax library for german tax calculation written in PHP.
Overview
- Income Tax (Einkommensteuer)
- Trade Tax / Business Tax (Gewerbesteuer)
- Value Added Tax (Umsatzsteuer)
- Solidarity Tax (Solidaritätszuschlag)
- Rate Of Assessment / Trade Tax Factor (Hebesatz)
Corporation Tax (Körperschaftsteuer)- Cash Accounting (Einahmen-Überschuss-Rechnung)
Installation
composer install jonczek/tax-de
Usage
Value added tax calculation example
Add tax entries to a repository:
$repository = new GenericRepository(); $repository->add(new ValueAddedTaxEntry(119)); $repository->add(new ValueAddedTaxEntry(238)); $repository->add(new ValueAddedTaxEntry(107, ValueAddedTaxRate::REDUCED_RATE)); $repository->add(new ValueAddedTaxEntry(214, ValueAddedTaxRate::REDUCED_RATE)); $repository->add(new ValueAddedTaxEntry(100, ValueAddedTaxRate::REDUCED_RATE, true)); $repository->add(new ValueAddedTaxEntry(200, ValueAddedTaxRate::FULL_RATE, true));
Calculate value added tax using the repository:
$calculator = new ValueAddedTaxCalculator(); $result = $calculator->calculate($repository);
Result:
Jonczek\Tax\Model\ValueAddedTaxCalculationResult Object ( [net:protected] => 900 [gross:protected] => 1023 [tax:protected] => 123 )
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-only
- 更新时间: 2020-02-28