PHPackages                             thelia/tax-rule-import-module - 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. thelia/tax-rule-import-module

ActiveThelia-module

thelia/tax-rule-import-module
=============================

1.0(11y ago)016LGPL-3.0+PHP

Since Apr 16Pushed 11y ago5 watchersCompare

[ Source](https://github.com/thelia-modules/TaxRuleImport)[ Packagist](https://packagist.org/packages/thelia/tax-rule-import-module)[ RSS](/packages/thelia-tax-rule-import-module/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Tax Rule Import
===============

[](#tax-rule-import)

This module add import and export for tax rules

/!\\ Tax rule export filter will be available in Thelia 2.1.4 and 2.2.0-alpha2

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

[](#installation)

### Manually

[](#manually)

- Copy the module into `/local/modules/` directory and be sure that the name of the module is TaxRuleImport.
- Activate it in your thelia administration panel

### Composer

[](#composer)

Add it in your main thelia composer.json file

```
composer require thelia/tax-rule-import-module:~1.0

```

Usage
-----

[](#usage)

### With Thelia

[](#with-thelia)

First, create your tax rule with Thelia.

Then, to the export (or import) page and use the "Tax rule" export (or import)

### Manually

[](#manually-1)

If you want to create your tax rule file, you'll have to write an XML file.

The root tag is called `tax-rules`, then each tax rule go into a `tax-rule`.

Example:

```

        ...

        ...

```

Then, each tax rule must have two tags:

- countries
- descriptives

It can have a `taxes` tag too.

#### The `` tag

[](#the-countries-tag)

This tag must contain at least one `country` tag. This is the countries where the tax rules has to be applied.

The value of country can be the isoalpha2, isoalpha3 or isocode of the country.

Example:

```
...

    FRA
    USA

...
```

#### The `` tag

[](#the-descriptives-tag)

This tag must contain at least one `descriptive` tag, that has a mandatory attribute `locale`. Then, the `descriptive` tag can have two children:

- `` The tax rule title
- `` The tax rule description

Example:

```

    French 20% VAT

    TVA française à 20%

```

#### The `` tag

[](#the-taxes-tag)

This tag contains at least one `tax` tag, that has a mandatory attribute `type`.

The type attribute can be:

- percent : this is a shortcut for `Thelia\TaxEngine\TaxType\PricePercentTaxType`
- amount : this is a shortcut for `Thelia\TaxEngine\TaxType\FixAmountTaxType`
- feature\_percent : this is a shortcut for `Thelia\TaxEngine\TaxType\FeatureFixAmountTaxType`
- Your own tax class

The `tax` tag can have two children:

- `` This tag works exactly like `tax-rule`'s one
- `` This tag has a mandatory attribute `key` that is the class's requirement name, and the value is the requirement's. You may add as many requirement tag as you want.

### Example

[](#example)

```

      FRA

        French 20% VAT

        TVA française à 20%

            French 20% VAT

            TVA française à 20%

        20

      FRA

        French 10% VAT

        TVA française à 10%

            French 10% VAT

            TVA française à 10%

        10

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

4051d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2196919?v=4)[thelia](/maintainers/thelia)[@thelia](https://github.com/thelia)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/thelia-tax-rule-import-module/health.svg)

```
[![Health](https://phpackages.com/badges/thelia-tax-rule-import-module/health.svg)](https://phpackages.com/packages/thelia-tax-rule-import-module)
```

PHPackages © 2026

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