Skip to content

API reference / Quittio \ Core \ View

InternationalAddressFormatter

final class in quittio/core · implements AddressFormatter

Quittio\Core\View\InternationalAddressFormatter · Source

Fallback address format: street lines, "postcode city", subdivision and, for foreign recipients, the country name in upper case as the last line.

Methods#

MethodDescription
->format()

format()#

public function format(
    Address $address,
    array $nameLines = [],
    ?string $senderCountry = null,
    ?string $locale = null,
): array
ParameterTypeDescription
$addressAddress
$nameLinesarray = []
$senderCountry?string = null
$locale?string = null
Returns
array

The open core packages are MIT licensed. The legal wording of the country packs must be confirmed by a tax adviser.