hankit / germany-income-tax-calculator
This library calculates income taxes for the german tax system.
1.0
2024-12-31 13:18 UTC
Requires
- php: >=8.0
Requires (Dev)
- fakerphp/faker: ^1.24
- mockery/mockery: ^1.6
- phpunit/phpunit: ^10
README
Germany Income Tax Calculator
Description
Calculate the income tax according to the stored formula for the provided year.
Tax amounts are returned as float. You can round them down to the next integer manually.
Installation
composer require hankit/germany-income-tax-calculator
Example usage
use HankIT\GermanyIncomeTaxCalculator\GermanyIncomeTaxCalculator;
$calculator = new GermanyIncomeTaxCalculator;
print($calculator->calculate(2024, 50000);
Testing
This library has 100% test coverage and aims to keep it that way.
You can run tests using phpunit:
phpunit
License
See LICENSE file