PHPackages                             chriys/taxman - 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. chriys/taxman

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

chriys/taxman
=============

PHP Sales Tax calculator using custom or Canadian rates

2672PHP

Since Feb 19Pushed 8y ago1 watchersCompare

[ Source](https://github.com/chriys/Taxman)[ Packagist](https://packagist.org/packages/chriys/taxman)[ RSS](/packages/chriys-taxman/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)DependenciesVersions (1)Used By (0)

Taxman
======

[](#taxman)

[![](https://camo.githubusercontent.com/850444744c24da71440efe3551e3bd403238031bb6f5ad12277373c7fa4b0379/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73697a652d35302532306b422d627269676874677265656e2e737667)](https://camo.githubusercontent.com/850444744c24da71440efe3551e3bd403238031bb6f5ad12277373c7fa4b0379/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73697a652d35302532306b422d627269676874677265656e2e737667)[![Build Status](https://camo.githubusercontent.com/decaf17eb549524f6823f845986989493f68c561ace6abcf89da95fde61a696f/68747470733a2f2f7472617669732d63692e6f72672f6368726979732f5461786d616e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/chriys/Taxman)[![Maintainability](https://camo.githubusercontent.com/72e1a58998e40f63da220aaa942467a38c3670aa4b12f18f346a780211b657b4/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f38326631383633353734663663383735336338352f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/chriys/Taxman/maintainability)

PHP Sales Tax calculator using custom or Canadian rates

Requierements
-------------

[](#requierements)

Requires `php >= 7.1`

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

[](#installation)

Install the packages via composer: `composer require chriys/taxman`.

Getting started
---------------

[](#getting-started)

This package allows to easily calculate taxes on an amount. Currently two main ways are available: using rates of Canadian provinces or using custom rates.

### Using Canadian's provinces rates

[](#using-canadians-provinces-rates)

```
    Taxes::calculate('10.00', 'alberta');
    // expected result
    [
        'sub_total' => '10.00',
        'taxes_details' => [
            'gst' => '0.5',
            'pst' => '0.8',
        ],
        'taxes' => '1.3',
        'total' => '11.3',
    ];

```

### Using custom taxes rates

[](#using-custom-taxes-rates)

```
    Taxes::calculate('45', [1, 2, 3]);
    // expected result
    [
        'sub_total' => '45',
        'taxes_details' => [
            0 => '0.45',
            1 => '0.9',
            2 => '1.35',
        ],
        'taxes' => '2.7',
        'total' => '47.7',
    ];

```

Security
--------

[](#security)

If you discover any security related issues, please contact the package developer at

License
-------

[](#license)

The Taxman package is open-sourced licensed under the [MIT License](License).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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/32c824c83190c12e03f69be8d0af0aa0988048a770961cd57fc8e975399aca28?d=identicon)[chriys](/maintainers/chriys)

---

Top Contributors

[![chriys](https://avatars.githubusercontent.com/u/7218422?v=4)](https://github.com/chriys "chriys (82 commits)")

### Embed Badge

![Health badge](/badges/chriys-taxman/health.svg)

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

###  Alternatives

[kartik-v/bootstrap-popover-x

Bootstrap Popover Extended - Popover with modal behavior, styling enhancements and more.

1143.4M3](/packages/kartik-v-bootstrap-popover-x)[laminas/laminas-component-installer

Composer plugin for injecting modules and configuration providers into application configuration

294.1M95](/packages/laminas-laminas-component-installer)

PHPackages © 2026

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