markup / addressing
A library that can render international postal addresses in different formats.
Installs: 60 401
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 14
Forks: 0
Open Issues: 0
Requires
- php: >=7.1
- symfony/intl: ^3.4|^4|^5
- zordius/lightncandy: 1.0
Requires (Dev)
- mikey179/vfsstream: ^1.6.4
- mockery/mockery: ^1.2
- phpstan/phpstan: ^0.12
- phpstan/phpstan-mockery: ^0.12
- phpunit/phpunit: ^7
- twig/twig: ^2|^3
README
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.