Money · Independent · 23 Oct 2026

commerceguys/tax

A PHP 5.5+ tax library.

← Money
Commerce Guys Tax. Calculates sales tax and value added tax for PHP stores.

In simple English

This tool helps online stores calculate sales tax and value added tax. It knows the tax rules for European countries and Canada. It changes the tax rate automatically when a country updates its laws. You need a programmer to set it up in your online shop. It is free to use under the MIT licence.

What it is

A PHP library (a collection of pre-written code files that a programmer adds to a project) for managing and calculating sales tax and value added tax. It includes built-in rules for changing tax rates over time and matching customer locations.

What it is good for

Solo builders and developers who are building a custom online store in PHP and need a reliable way to calculate complex taxes across different countries and regions.

Stars287
LicenceMIT
Latestv2.0.0 (2026-10-14)checked 23 Oct 2026
Last code change2026-10-14
Written inPHP
Setup effort
3 / 5
Payoff
4 / 5
Good
  • Handles changing tax rates over time automatically.
  • Comes with pre-loaded tax data for European countries and Canada.
  • Allows custom tax rules for special cases like tax holidays or digital products.
Watch for
  • Requires PHP programming knowledge to install and use.
  • Depends on an external library for geographic zone data.
  • Only includes tax rates for a few regions by default, so you must add others yourself.
Replaces

Writing custom tax calculation logic from scratch for every country

Works well with

commerceguys/zone

Similar repositories
  • moneyphp/money4.9k stars

    Handles currency conversion and monetary math in PHP, which pairs well with tax calculations.

  • stripe/stripe-php4.0k stars

    Provides official PHP bindings for Stripe payment and tax services.

Also reviewed on Repo Radar
  • btcpayserver/btcpayserver7.8k stars

    Payment software you run yourself that takes Bitcoin into a wallet whose keys you hold.

  • hledgerorg/hledger4.8k stars

    Double-entry accounting over plain text files, with command-line, terminal, web and editor interfaces.

  • akaunting/akaunting10k stars

    Self-hosted invoicing and expense tracking, with the double-entry accounting sold separately as an add-on.

Install
composer require commerceguys/tax

Independent: reviewed for Repo Radar outside the daily editions. Every independent repository

On Stack Radar: Commerce & Finance › Payments & Billing › Sales Tax.

Get the next edition in your inbox

A dozen repositories, opened and checked. The licence read, the last release dated, and the ones that did not make it named with the reason. It is the half most lists leave out.

No tracking pixels. One click to leave. The archive stays free either way.

We use your address to send the edition and nothing else. Confirm by email, leave in one click. How we handle it.