PHPackages                             veltix/tax-engine - 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. veltix/tax-engine

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

veltix/tax-engine
=================

A Laravel TAX/VAT calculation engine

v1.0.3(2mo ago)033MITPHPPHP ^8.3CI failing

Since Feb 21Pushed 2mo agoCompare

[ Source](https://github.com/veltix/tax-engine)[ Packagist](https://packagist.org/packages/veltix/tax-engine)[ RSS](/packages/veltix-tax-engine/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (20)Versions (5)Used By (0)

Tax Engine
==========

[](#tax-engine)

A Laravel package for EU tax/VAT calculation with support for OSS, IOSS, reverse charge, and export rules.

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

[](#requirements)

- PHP 8.2+
- Laravel 11 or 12
- `ext-bcmath`

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

[](#installation)

```
composer require veltix/tax-engine
```

Publish the configuration:

```
php artisan vendor:publish --tag=tax-engine-config
```

If using database storage for compliance snapshots, publish and run migrations:

```
php artisan vendor:publish --tag=tax-engine-migrations
php artisan migrate
```

Configuration
-------------

[](#configuration)

Key settings in `config/tax.php`:

KeyDescriptionDefault`seller.country`Seller's EU country code`NL``oss.enabled`Enable One-Stop Shop`false``ioss.enabled`Enable Import One-Stop Shop`false``rounding.mode`Rounding mode (`half_up`, `half_down`, `half_even`)`half_up``compliance.store_decisions`Store tax decisions`true``compliance.store_evidence`Store evidence (requires `store_decisions` with database driver)`true``compliance.storage_driver`Storage backend (`array` or `database`)`array`Usage
-----

[](#usage)

```
use Veltix\TaxEngine\Actions\CalculateTaxAction;
use Veltix\TaxEngine\Data\TransactionData;
use Veltix\TaxEngine\Enums\CustomerType;
use Veltix\TaxEngine\Enums\SupplyType;
use Veltix\TaxEngine\Support\Country;
use Veltix\TaxEngine\Support\Money;

$action = app(CalculateTaxAction::class);

$result = $action->execute(new TransactionData(
    transactionId: 'order-123',
    amount: Money::fromCents(10000), // EUR 100.00
    sellerCountry: new Country('DE'),
    buyerCountry: new Country('FR'),
    customerType: CustomerType::B2C,
    supplyType: SupplyType::DigitalServices,
));

$result->taxAmount;    // Money object with calculated tax
$result->grossAmount;  // Net + tax
$result->decision;     // TaxDecisionData with scheme, rate, reasoning
```

Available Rules
---------------

[](#available-rules)

Rules are evaluated by priority (highest first):

RulePriorityDescriptionIOSS70Import of goods into EU (max EUR 150)Export60Goods export from EU to non-EUService Export59Services from EU to non-EU (outside scope)Reverse Charge50B2B cross-border EU with VAT numberOSS40B2C cross-border EU (when OSS enabled)Domestic Reverse Charge30Domestic B2B reverse chargeCross-Border B2C Fallback20B2C cross-border EU without OSS (seller rate)Domestic Standard10Domestic EU saleExtending with Custom Rules
---------------------------

[](#extending-with-custom-rules)

Implement `RuleContract` and tag it in your service provider:

```
use Veltix\TaxEngine\Contracts\RuleContract;

class MyCustomRule implements RuleContract
{
    public function applies(TransactionData $transaction): bool { /* ... */ }
    public function evaluate(TransactionData $transaction): TaxDecisionData { /* ... */ }
    public function priority(): int { return 25; }
}

// In your service provider:
$this->app->bind(MyCustomRule::class, fn () => new MyCustomRule());
$this->app->tag(MyCustomRule::class, 'tax-engine.rules');
```

License
-------

[](#license)

MIT

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance87

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

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.

###  Release Activity

Cadence

Every ~8 days

Total

4

Last Release

62d ago

PHP version history (2 changes)v1.0.0PHP ^8.2

v1.0.2PHP ^8.3

### Community

Maintainers

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

---

Top Contributors

[![veltix](https://avatars.githubusercontent.com/u/46252663?v=4)](https://github.com/veltix "veltix (6 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/veltix-tax-engine/health.svg)

```
[![Health](https://phpackages.com/badges/veltix-tax-engine/health.svg)](https://phpackages.com/packages/veltix-tax-engine)
```

###  Alternatives

[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[genealabs/laravel-model-caching

Automatic caching for Eloquent models.

2.4k4.8M26](/packages/genealabs-laravel-model-caching)[spatie/laravel-enum

Laravel Enum support

3655.4M31](/packages/spatie-laravel-enum)

PHPackages © 2026

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