PHPackages                             rackbeat/php-vat-helper - 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. [Payment Processing](/categories/payments)
4. /
5. rackbeat/php-vat-helper

ActiveLibrary[Payment Processing](/categories/payments)

rackbeat/php-vat-helper
=======================

Handle simple VAT calculations.

1.4(3y ago)541.1kMITPHPPHP &gt;=7.1CI failing

Since Jun 22Pushed 3y ago2 watchersCompare

[ Source](https://github.com/Rackbeat/php-vat-helper)[ Packagist](https://packagist.org/packages/rackbeat/php-vat-helper)[ RSS](/packages/rackbeat-php-vat-helper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (6)Used By (0)

 [![](logo.png)](logo.png)

 No more ugly math in your business logic.

 [![Build Status](https://camo.githubusercontent.com/0fbe6b6d88f14ac04ac5d732d594e4cd44b192012799409f1bb9a424aec8f05c/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f5261636b626561742f7068702d7661742d68656c7065722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Rackbeat/php-vat-helper)[![Coverage](https://camo.githubusercontent.com/32e80aab9899d5e96380921716cd8e1489f88f8c2e9bbc9a65dd4471cf5936b1/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f5261636b626561742f7068702d7661742d68656c7065722e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/github/Rackbeat/php-vat-helper)[![Total Downloads](https://camo.githubusercontent.com/021cb9383fad081c705297b1ae9366fbb7cc03a824d60705beaafc335b9df811/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7261636b626561742f7068702d7661742d68656c7065722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rackbeat/php-vat-helper)[![Latest Stable Version](https://camo.githubusercontent.com/e69656e060b6bcc798d1e9459262342261c157392cf46c03857cc15cd957c748/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7261636b626561742f7068702d7661742d68656c7065722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rackbeat/php-vat-helper)[![License](https://camo.githubusercontent.com/779b2297ca169f8bc1f7cb55eb9f0f23fc7b1d8f34f47c7fb9a75b8aa8bb227c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7261636b626561742f7068702d7661742d68656c7065722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rackbeat/php-vat-helper)

Convert numbers to include or exclude VAT.
==========================================

[](#convert-numbers-to-include-or-exclude-vat)

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

[](#installation)

You just require using composer and you're good to go!

```
composer require rackbeat/php-vat-helper
```

Usage
-----

[](#usage)

```
Rackbeat\VAT::include($amountExclVat = 100.0, 25); // 125.0
Rackbeat\VAT::exclude($amountInclVat = 100.0, 25); // 80.0
Rackbeat\VAT::amount($amountInclVat = 100.0, 25); // 25.0
Rackbeat\VAT::percentage($amountInclVat = 100.0, $amountExclVat = 80.0); // 0.25
```

Plans
-----

[](#plans)

- Better documentation
- Per-country/region defined vat zones

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

[](#requirements)

- PHP &gt;= 7.1

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~418 days

Total

5

Last Release

1215d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fd953630eb9784e977637a0fe53be91b9dd4b0262a5b5b1fa9277e0c2806b65c?d=identicon)[lasserafn](/maintainers/lasserafn)

---

Top Contributors

[![LasseRafn](https://avatars.githubusercontent.com/u/2689341?v=4)](https://github.com/LasseRafn "LasseRafn (12 commits)")

---

Tags

invoicevatAccountingcalculatemvamoms

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rackbeat-php-vat-helper/health.svg)

```
[![Health](https://phpackages.com/badges/rackbeat-php-vat-helper/health.svg)](https://phpackages.com/packages/rackbeat-php-vat-helper)
```

###  Alternatives

[laraveldaily/laravel-invoices

Missing invoices for Laravel

1.5k1.3M4](/packages/laraveldaily-laravel-invoices)[horstoeko/zugferd

A library for creating and reading european electronic invoices

4044.3M18](/packages/horstoeko-zugferd)[atgp/factur-x

PHP library to manage your Factur-X / ZUGFeRD 2.0 PDF invoices files

138825.5k3](/packages/atgp-factur-x)[num-num/ubl-invoice

A modern object-oriented PHP library to create and read valid UBL and EN 16931/Peppol BIS 3.0 files

135820.5k](/packages/num-num-ubl-invoice)[konekt/pdf-invoice

Library to generate PDF invoices

212200.7k](/packages/konekt-pdf-invoice)[josemmo/einvoicing

Library for reading and creating European-compliant electronic invoices (EN 16931)

173279.6k2](/packages/josemmo-einvoicing)

PHPackages © 2026

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