georgringer/country-backport

Backport of TYPO3 v12 country list to TYPO3 v11

Maintainers

👁 georgringer

Package info

github.com/georgringer/country_backport

Type:typo3-cms-extension

pkg:composer/georgringer/country-backport

Statistics

Installs: 3 893

Dependents: 0

Suggesters: 0

Stars: 3

Open Issues: 0

0.0.2 2023-02-08 08:33 UTC

Requires

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

GPL-2.0-or-later 691c3a2b1c34f48dc7f44dbc0497341aaebfa5d8

This package is auto-updated.

Last update: 2026-06-29 02:03:02 UTC


README

This extension is a backport of the country features from TYPO3 v12 to TYPO3 v11 + 10. Read all about it at https://github.com/TYPO3/typo3/blob/main/typo3/sysext/core/Documentation/Changelog/12.2/Feature-99618-ListOfCountriesInTheWorldAndTheirLocalizedNames.rst

Installation

Either use composer req georgringer/country-backport or download the extension from the TER

Usage

Use this extension as in the core but with different namespaces:

 <html
 xmlns:country="http://typo3.org/ns/GeorgRinger/CountryBackport/ViewHelpers">

 <country:form.countrySelect
 name="country"
 value="AT"
 sortByOptionLabel="true"
 prioritizedCountries="{0: 'DE', 1: 'AT', 2: 'CH'}"
 />
</html>
$countryProvider = GeneralUtility::makeInstance(\GeorgRinger\CountryBackport\Country\CountryProvider);
$france = $countryProvider->getByIsoCode('FR');
// or
$france = $countryProvider->getByName('France');
// or
$france = $countryProvider->getByAlpha3IsoCode('FRA');
// or
$filter = new \GeorgRinger\CountryBackport\Country\CountryFilter();
$filter->setExcludeCountries(['DE', 'AT']);
$filter->setOnlyCountries(['FR', 'IT', 'AT']);
$list = $countryProvider->getFiltered($filter);