correctch/ch-withholding-tax

Withholding Taxes for Swiss Cantons

Maintainers

Package info

github.com/correctch/ch-withholding-tax

pkg:composer/correctch/ch-withholding-tax

Statistics

Installs: 519

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main 2026-04-28 17:42 UTC

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
);