markup/addressing

A library that can render international postal addresses in different formats.

0.7.0 2020-08-27 10:09 UTC

This package is auto-updated.

Last update: 2024-05-06 23:56:24 UTC


README

Build Status

About

This library provides formatting for international postal addresses. It takes a common format of an address and renders it according to the rules set out in Frank's Compulsive Guide To Postal Addresses.

Limitations

At the current time, there are only definitions for: United Kingdom, Guernsey, Jersey, Isle of Man, Ireland, Sweden, Denmark, Norway, Finland, Netherlands, Belgium, USA, Canada. There are fallbacks in place for other countries. Formats for other locations will be added soon, and PRs are more than welcome!

This library is not currently usable by itself (a facade class is coming that will allow direct usage), but there is a Symfony2 bundle (markup/addressing-bundle) that provides easy use of the library.

Usage

(Coming when a facade class is written to allow a stable method of direct usage.)

License

Released under the MIT License. See LICENSE.