Skip to content

A PHP library that formats international postal addresses.

License

Notifications You must be signed in to change notification settings

usemarkup/addressing

Repository files navigation

This repository and organisation are scheduled for deletion - please fork any repositories you are using to another location prior to February 28th 2022.

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.