PHPackages                             sunkaflek/vies-parser - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. sunkaflek/vies-parser

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

sunkaflek/vies-parser
=====================

Parses adresses from VIES API

v0.5.7(1y ago)531.3k↓39.3%1MITPHPPHP &gt;=7.2

Since Feb 24Pushed 1y ago2 watchersCompare

[ Source](https://github.com/sunkaflek/vies-parser)[ Packagist](https://packagist.org/packages/sunkaflek/vies-parser)[ RSS](/packages/sunkaflek-vies-parser/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)DependenciesVersions (13)Used By (0)

vies-parser
===========

[](#vies-parser)

This library aims to parse addresses returned by EU's VIES API (VAT Information Exchange System). Normally the API returns adresses as one string, instead of street, city, zip. This may be be a big issue for automation.

Supported countries are in get\_supported\_countries(), currently that is \['SK', 'NL', 'BE', 'FR', 'PT', 'IT', 'FI', 'RO', 'SI', 'AT', 'PL', 'HR', 'EL', 'DK', 'EE', 'CZ'\].

I try to add more countries and/or tweak the parser as I get more data from a project in production.

Please note that for some countries (e.g. DE, IE) it is not possible to parse address at all, since the VIES API does not return it or is too inconsistent.

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

[](#installation)

To install the latest version use `composer require sunkaflek/vies-parser`.

Usage
-----

[](#usage)

```
