Download the PHP package ankalagon/vies-address-formatter without Composer

On this page you can find all versions of the php package ankalagon/vies-address-formatter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package vies-address-formatter

Service can recognize postal_code, city and address (rest of address line) from address provided by VIES service (http://ec.europa.eu/taxation_customs/vies/?locale=en).

Requirements

or

Installation

Update your composer.json and run composer update

or execute

Usage

the above example will produce the following output:

Example address line recognizion

Iso Code Address line Return data
GB C/O BMW UK GROUPTAX FR-3-UK SUMMIT ONE SUMMIT AVENUE
FARNBOROUGH
GU14 0FB
Array (
    [city] => Farnborough
    [postal_code] => GU14 0FB
    [address] => C/o Bmw Uk Grouptax Fr-3-uk Summit One Summit Avenue
)
GB 28-29 THE BROADWAY
EALING
LONDON

W5 2NP
Array (
    [city] => London
    [postal_code] => W5 2NP
    [address] => 28-29 The Broadway Ealing
)
GB 10 THE GRANGEWAY
GRANGE PARK
LONDON
N21 2HA
Array (
    [city] => London
    [postal_code] => N21 2HA
    [address] => 10 The Grangeway Grange Park
)
GB 254 BANNERDALE ROAD
SHEFFIELD
S11 9FE
Array (
    [city] => Sheffield
    [postal_code] => S11 9FE
    [address] => 254 Bannerdale Road
)
PT R FIGUEIRAS N 616 MAIA
4475-011
MAIA
Array (
    [city] => Maia
    [postal_code] => 4475-011
    [address] => R Figueiras N 616 Maia
)
LU 40, RUE ANTOINE MEYER L-2153 LUXEMBOURG Array (
    [city] => Luxembourg
    [postal_code] => L-2153
    [address] => 40, Rue Antoine Meyer
)
NL EEKHORSTWEG 00031 A 7942KC MEPPEL Array (
    [city] => Meppel
    [postal_code] => 7942KC
    [address] => Eekhorstweg 00031 A
)
BE EZELSTRAAT 69 1 8000 BRUGGE Array (
    [city] => Brugge
    [postal_code] => 8000
    [address] => Ezelstraat 69 1
)
IT P.ZA FERRAVILLA N. 2 20092 CINISELLO BALSAMO MI Array (
    [city] => Cinisello Balsamo Mi
    [postal_code] => 20092
    [address] => P.za Ferravilla N. 2
)
BG ул. Самуиловско шосе №1А обл.СЛИВЕН, гр.СЛИВЕН 8800 Array (
    [city] =>
    [postal_code] => 8800
    [address] => ул. самуиловско шосе №1а обл.сливен, гр.сливен
)
AT Herrengasse 44
7471 Rechnitz
Array (
    [city] => Rechnitz
    [postal_code] => 7471
    [address] => Herrengasse 44
)
NO Setesdalsveien 76
4617 KRISTIANSAND S
Array (
    [city] => Kristiansand S
    [postal_code] => 4617
    [address] => Setesdalsveien 76
)
PL KORNELA UJEJSKIEGO 12 M7
30-102 KRAKÓW
Array (
    [city] => Kraków
    [postal_code] => 30-102
    [address] => Kornela Ujejskiego 12 M7
)
PL AL. 29 LISTOPADA 155C
31-406 KRAKów
Array (
    [city] => Kraków
    [postal_code] => 31-406
    [address] => Al. 29 Listopada 155c
)
PL AL. JERZEGO WASZYNGTONA 45/51
04-008 WARSZAWA
Array (
    [city] => Warszawa
    [postal_code] => 04-008
    [address] => Al. Jerzego Waszyngtona 45/51
)

Thanks to

Special thanks to Matthew Bednarski for postal-code.json library (https://gist.github.com/matthewbednarski/4d15c7f50258b82e2d7e). I use it (with small modfications) in this project.


All versions of vies-address-formatter with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ankalagon/vies-address-formatter contains the following files

Loading the files please wait ....