PHPackages                             bit64/sars - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. bit64/sars

ActiveLibrary

bit64/sars
==========

South African Revenue Services (SARS) component for PHP

05PHP

Since Jul 7Pushed 4y agoCompare

[ Source](https://github.com/bit64co/sars)[ Packagist](https://packagist.org/packages/bit64/sars)[ RSS](/packages/bit64-sars/feed)WikiDiscussions dev-master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

SARS Component
==============

[](#sars-component)

*Copyright (c) 2021-current Bit 64 Solutions Pty Ltd ([bit64.co](https://bit64.co))*

This component provides a tax calculator microservice specific to the South African Revenue Services (SARS) for PHP projects.

---

Usage
-----

[](#usage)

Installation via Composer

```
$ composer require bit64/sars
```

Instantiate the API class

```
use Bit64\SARS\Api;

$api = new Api();
```

#### Income Tax Calculator

[](#income-tax-calculator)

Get the income tax calculator

```
$incomeTax = $api->IncomeTax();
```

Default age is 30 years old

```
$grossMonthly = 25000;

$paye = $incomeTax->calculateMonthlyTax($grossMonthly);

echo sprintf('R%0.2f', $paye);
// Output R3749.17
```

Specify age and context date

```
$grossWeekly = 12000;
$age = 68;
$contextDate = '2021-05-30';

$paye = $incomeTax->calculateWeeklyTax($grossWeekly, $age, $contextDate);

echo sprintf('R%0.2f', $paye);
// Output R2751.23
```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/514c58e7558dc3bcb4b5a488e540f481bdf3ce55eaec3cfaa2d939058ce26213?d=identicon)[bit64](/maintainers/bit64)

---

Top Contributors

[![prof83](https://avatars.githubusercontent.com/u/45089714?v=4)](https://github.com/prof83 "prof83 (1 commits)")

### Embed Badge

![Health badge](/badges/bit64-sars/health.svg)

```
[![Health](https://phpackages.com/badges/bit64-sars/health.svg)](https://phpackages.com/packages/bit64-sars)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
