Skip to content

API reference / Quittio \ Core \ View

AddressFormatter

interface in quittio/core

Quittio\Core\View\AddressFormatter · Source

Formats postal addresses according to the conventions of a country.

Methods#

MethodDescription
->format()

format()#

public function format(
    Address $address,
    list<string> $nameLines = [],
    ?string $senderCountry = null,
    ?string $locale = null,
): list<string>
ParameterTypeDescription
$addressAddress
$nameLineslist<string> = []recipient lines placed before the address
$senderCountry?string = null
$locale?string = null
Returns
list<string>

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