PHPackages                             prometee/sylius-vies-client-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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. prometee/sylius-vies-client-plugin

Abandoned → [flux-se/sylius-eu-vat-plugin](/?search=flux-se%2Fsylius-eu-vat-plugin)Sylius-plugin[Validation &amp; Sanitization](/categories/validation)

prometee/sylius-vies-client-plugin
==================================

Add EU VAT field and validation for Sylius using VIES API Webservice.

v3.0.2(7mo ago)179.5k8MITPHPCI failing

Since May 2Pushed 7mo ago2 watchersCompare

[ Source](https://github.com/FLUX-SE/SyliusEUVatPlugin)[ Packagist](https://packagist.org/packages/prometee/sylius-vies-client-plugin)[ RSS](/packages/prometee-sylius-vies-client-plugin/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (38)Versions (25)Used By (0)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f9c13fafc22c2aef9b33f0a76476282c5fa0d68069dfa0e53861bae99b3dfc3d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666c75782d73652f73796c6975732d65752d7661742d706c7567696e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/flux-se/sylius-eu-vat-plugin)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://github.com/FLUX-SE/SyliusEUVatPlugin/workflows/Build/badge.svg)](https://github.com/FLUX-SE/SyliusEUVatPlugin/actions?query=workflow%3A%22Build%22)[![Quality Score](https://camo.githubusercontent.com/6cd3055341f19d2ad6c221e649370e466229eac004d755526fc724536147aafd/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f464c55582d53452f53796c6975734555566174506c7567696e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/FLUX-SE/SyliusEUVatPlugin)

EU VAT field and validation for Sylius using VIES API Webservice
================================================================

[](#eu-vat-field-and-validation-for-sylius-using-vies-api-webservice)

This plugin is adding :

- two new attributes to the `Channel` entity allowing to know from which country your shop is from and what's the European zone to target
- VAT Number field to the `Address` entity
- validation over VIES API on this field
- validation of the address country (vat number country should equal to the address country)
- the basic European rule allowing the seller not to charge VAT to foreign European customers who have provided a valid VAT number :
    - (Shop country === customer country vat number) then do nothing
    - (Shop country !== customer country vat number) then remove taxes

Screenshots
-----------

[](#screenshots)

### Shop checkout

[](#shop-checkout)

[![Shop checkout address step form](docs/assets/shop-checkout-address-form.png "Shop checkout address step form")](docs/assets/shop-checkout-address-form.png)

[![Shop checkout summary page](docs/assets/shop-checkout-summary.png "Shop checkout summary page")](docs/assets/shop-checkout-summary.png)

### Shop account

[](#shop-account)

[![Shop account address book](docs/assets/shop-account-address-book.png "Shop account address book")](docs/assets/shop-account-address-book.png)

[![Shop account order details](docs/assets/shop-account-order-details.png "Shop account order details")](docs/assets/shop-account-order-details.png)

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

[](#installation)

```
composer require flux-se/sylius-eu-vat-plugin
```

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

[](#configuration)

Enable this plugin :

```
