PHPackages                             setono/sylius-toggle-vat-plugin - 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. setono/sylius-toggle-vat-plugin

ActiveSylius-plugin[Utility &amp; Helpers](/categories/utility)

setono/sylius-toggle-vat-plugin
===============================

Let customers decide to show prices with or without VAT in your Sylius store

v1.0.0-beta.2(11mo ago)0193MITPHPPHP &gt;=8.1CI passing

Since May 9Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/Setono/sylius-toggle-vat-plugin)[ Packagist](https://packagist.org/packages/setono/sylius-toggle-vat-plugin)[ GitHub Sponsors](https://github.com/Setono)[ RSS](/packages/setono-sylius-toggle-vat-plugin/feed)WikiDiscussions master Synced 1mo ago

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

Sylius Toggle VAT Plugin
========================

[](#sylius-toggle-vat-plugin)

[![Latest Version](https://camo.githubusercontent.com/499049dbcec4f0b331d082dc4b0d2b6509507a33cd604397a1da89e80083e3ff/68747470733a2f2f706f7365722e707567782e6f72672f7365746f6e6f2f73796c6975732d746f67676c652d7661742d706c7567696e2f762f737461626c65)](https://packagist.org/packages/setono/sylius-toggle-vat-plugin)[![Software License](https://camo.githubusercontent.com/2edb2362e0ff04ee5d439cb0755d7eec1c44bcf429bf28b568940759182ee349/68747470733a2f2f706f7365722e707567782e6f72672f7365746f6e6f2f73796c6975732d746f67676c652d7661742d706c7567696e2f6c6963656e7365)](LICENSE)[![Build Status](https://github.com/Setono/sylius-toggle-vat-plugin/workflows/build/badge.svg)](https://github.com/Setono/sylius-toggle-vat-plugin/actions)[![Code Coverage](https://camo.githubusercontent.com/dabf283d2e866d04be90316a658449e39aabd367fe3347a7fd732ecae4a83782/68747470733a2f2f636f6465636f762e696f2f67682f5365746f6e6f2f73796c6975732d746f67676c652d7661742d706c7567696e2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/Setono/sylius-toggle-vat-plugin)[![Mutation testing](https://camo.githubusercontent.com/e16f5cfd4be118f8f8f33e9c147f521dceaa0108ef900c23eda47f7be294e640/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d2532465365746f6e6f25324673796c6975732d746f67676c652d7661742d706c7567696e2532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/Setono/sylius-toggle-vat-plugin/1.12.x)

Let customers decide to show prices with or without VAT in your Sylius store.

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

[](#installation)

```
composer require setono/sylius-toggle-vat-plugin
```

### Import routing

[](#import-routing)

```
# config/routes/setono_sylius_toggle_vat.yaml
setono_sylius_toggle_vat:
    resource: "@SetonoSyliusToggleVatPlugin/Resources/config/routes.yaml"
```

or if your app doesn't use locales:

```
# config/routes/setono_sylius_toggle_vat.yaml
setono_sylius_toggle_vat:
    resource: "@SetonoSyliusToggleVatPlugin/Resources/config/routes_no_locale.yaml"
```

Default configuration
---------------------

[](#default-configuration)

```
setono_sylius_toggle_vat:

    # Whether to display prices with VAT or not by default
    display_with_vat:     true

    # Name of the cookie used to store the user's VAT choice
    cookie_name:          sstv_display_with_vat
```

Insert VAT toggler
------------------

[](#insert-vat-toggler)

By default, the VAT toggler is injected using the Sylius UI event system and the event `sylius.shop.layout.topbar`, however, you can inject it yourself calling the Twig function `sstv_vat_toggler()` anywhere in your templates.

VAT context
-----------

[](#vat-context)

The plugin uses the `Setono\SyliusToggleVatPlugin\Context\VatContextInterface` to deduce whether to show prices with our without VAT. You can create your own VAT context by implementing that interface.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance50

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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 ~4 days

Total

4

Last Release

355d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2412177?v=4)[Joachim Løvgaard](/maintainers/loevgaard)[@loevgaard](https://github.com/loevgaard)

---

Top Contributors

[![loevgaard](https://avatars.githubusercontent.com/u/2412177?v=4)](https://github.com/loevgaard "loevgaard (35 commits)")

---

Tags

phpsyliussylius-pluginsymfonysymfony-bundlesyliussylius-plugin

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/setono-sylius-toggle-vat-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/setono-sylius-toggle-vat-plugin/health.svg)](https://phpackages.com/packages/setono-sylius-toggle-vat-plugin)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[codefog/contao-haste

haste extension for Contao Open Source CMS

42650.8k139](/packages/codefog-contao-haste)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[setono/sylius-redirect-plugin

Sylius plugin for managing redirects

26352.1k](/packages/setono-sylius-redirect-plugin)[setono/sylius-terms-plugin

Sylius terms and conditions plugin

3684.5k](/packages/setono-sylius-terms-plugin)

PHPackages © 2026

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