correctch / ch-withholding-tax
Withholding Taxes for Swiss Cantons
dev-main
2026-04-28 17:42 UTC
Requires
- php: >=8.3
Requires (Dev)
- phpunit/phpunit: ^12.4
This package is auto-updated.
Last update: 2026-04-28 17:43:10 UTC
README
Withholding Taxes for Swiss Cantons.
Installation
composer require correctch/ch-withholding-tax
Usage
use CorrectCh\ChWithholdingTax\WithholdingTax; use CorrectCh\ChWithholdingTax\Canton; $canton = Canton::LU; // Luzern $code = "A0N'; // Example tax code: No children, no tax for church $tax = new WithholdingTax(); $year = 2025; $wage = 6500.00; // Monthly wage in CHF $rate_determining_income = 6300.00; // Monthly rate-determining income in CHF $withholding_tax = $tax->calculate( $year, $wage, $rate_determining_income );