PHPackages                             hilinksnetworks/ng-paye-calculator - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. hilinksnetworks/ng-paye-calculator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

hilinksnetworks/ng-paye-calculator
==================================

A simple PHP library for calculating PAYE in Nigeria.

11PHP

Since Nov 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/hilinksnetworks/ng-paye-calculator)[ Packagist](https://packagist.org/packages/hilinksnetworks/ng-paye-calculator)[ RSS](/packages/hilinksnetworks-ng-paye-calculator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PAYE Calculator
===============

[](#paye-calculator)

A PHP library for calculating **Pay As You Earn (PAYE)** tax in Nigeria. This library computes PAYE based on the annual salary, an array of allowances, and an array of deductions using the Nigerian tax system.

---

Features
--------

[](#features)

- Supports input of annual salary, allowances, and deductions.
- Automatically calculates total allowances and deductions.
- Computes PAYE using Nigeria's progressive tax brackets.
- Easy to integrate into any PHP project.

---

Installation
------------

[](#installation)

Install the library via Composer:

```
composer require hilinksnetworks/ng-paye-calculator:dev-main
```

---

Usage
-----

[](#usage)

Here's how to use the PAYE Calculator in your PHP project:

```
require 'vendor/autoload.php';

use PAYE\PAYECalculator;

// Input data
$annualSalary = 5000000; // Annual Salary: ₦5,000,000
$allowances = [1000000, 500000, 250000]; // Array of allowances
$deductions = [200000, 150000, 100000]; // Array of deductions

// Calculate PAYE
$paye = PAYECalculator::calculate($annualSalary, $allowances, $deductions);

echo "The PAYE tax is: ₦" . number_format($paye, 2);
```

### Explanation of Inputs

[](#explanation-of-inputs)

1. **Annual Salary**: Total annual salary (numeric value).
2. **Allowances**: An array of all allowances (e.g., housing, transport).
3. **Deductions**: An array of all deductions (e.g., pension, insurance).

---

How PAYE is Calculated
----------------------

[](#how-paye-is-calculated)

The PAYE is computed using the following steps:

1. **Gross Income** = Annual Salary + Total Allowances.
2. **Consolidated Relief Allowance (CRA)**:
    - ₦200,000 or 1% of gross income (whichever is higher) + 20% of gross income.
3. **Taxable Income** = Gross Income - (CRA + Total Deductions).
4. **Progressive Tax Rates**:
    - First ₦300,000: 7%
    - Next ₦300,000: 11%
    - Next ₦500,000: 15%
    - Next ₦500,000: 19%
    - Next ₦1,600,000: 21%
    - Above ₦3,200,000: 24%

---

Requirements
------------

[](#requirements)

- PHP 7.4 or higher.
- Composer.

---

License
-------

[](#license)

This project is licensed under the [MIT License](LICENSE).

---

Author
------

[](#author)

**Your Name**
Email:
GitHub: [hilinksnetworks](https://github.com/yourname)

---

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity16

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/19b290ebd3203f98e34219eb43cfec06a8f2ceaca17315b4147ddf9d4e7de54e?d=identicon)[hilinksnetworks](/maintainers/hilinksnetworks)

---

Top Contributors

[![hilinksnetworks](https://avatars.githubusercontent.com/u/76249907?v=4)](https://github.com/hilinksnetworks "hilinksnetworks (15 commits)")

### Embed Badge

![Health badge](/badges/hilinksnetworks-ng-paye-calculator/health.svg)

```
[![Health](https://phpackages.com/badges/hilinksnetworks-ng-paye-calculator/health.svg)](https://phpackages.com/packages/hilinksnetworks-ng-paye-calculator)
```

###  Alternatives

[rarst/toolbar-theme-switcher

Adds WordPress toolbar menu that allows users to switch theme for themselves

207.6k1](/packages/rarst-toolbar-theme-switcher)

PHPackages © 2026

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