Skip to content

API reference / Quittio \ Core \ View

CountryNames

final class in quittio/core

Quittio\Core\View\CountryNames · Source

Country names from ext-intl with the ISO code as fallback.

Methods#

MethodDescription
::name()Name of the country with ISO 3166-1 alpha-2 code $code in $locale, e.g. "Deutschland" for "DE" in "de"; the code itself without ext-intl or for an unknown code.

name()#

public static function name(string $code, string $locale = 'en'): string

static

Name of the country with ISO 3166-1 alpha-2 code $code in $locale, e.g. "Deutschland" for "DE" in "de"; the code itself without ext-intl or for an unknown code.

ParameterTypeDescription
$codestring
$localestring = 'en'
Returns
string

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