spatie/tax-calculator
PHP interfaces and methods for handling tax calculations in applications.
What it does
A PHP package whose TaxCalculation class computes base price, tax and taxed price for single amounts or collections of items that implement its HasTax interface, and adds calculations together. Installed with Composer; written for PHP developers who want to pass domain objects rather than floats around. The rate comes from your own objects or arguments; MIT-licensed postcardware.
Where it fits on the map
Not on the map: inactive.
The map places maintained projects for a company tax department or a tax authority, without a demo or paid-service flag. Everything else stays on the list with its label.
Similar projects
Of the same kind, for a shared jurisdiction or tax area. Not a ranking.
- Attest.NET library that validates ID numbers, tax codes, VAT numbers and postal codes in 87 countries.
- commerceguys/taxPHP tax library for commerce applications: tax types, zones and rates.
- DomibusDomibus, the European Commission's open AS4 message handler for eDelivery, used for e-invoicing exchanges.
- eric-rsRust bindings and SDK for ERiC, the ELSTER library for submitting German tax filings.
- FiscalBr.NETC# library that generates Brazil's SPED files and other tax and accounting declarations.
- GOBLGo library and schemas for electronic business documents, especially invoices.
Maintain this project?
Link to this page from your README, so readers find the facts, the notes and where it fits. The badge is a small SVG served from this site.
[](https://tax-oss.com/projects/spatie-tax-calculator/)