Fluid ViewHelper for formatting phone numbers in TYPO3 using libphonenumber.
Formats raw phone numbers or tel: URIs (from TCA type=link with allowedTypes=telephone) into standardized international or national format (e.g. DIN 5008).
composer req b13/phone-numberRegister the namespace in your Fluid template:
<html
data-namespace-typo3-fluid="true"
xmlns:phone="http://typo3.org/ns/B13/PhoneNumber/ViewHelpers"
><phone:format value="tel:+497113400810" />Output: +49 711 3400810
<phone:format value="tel:+497113400810" national="1" />Output: 0711 3400810
<phone:format value="+49 (0) 711 34008-10" />Output: +49 711 3400810
| Argument | Type | Default | Description |
|---|---|---|---|
value |
string | — | Phone number or tel: link value (required) |
defaultRegion |
string | DE |
Default region for parsing numbers without country code |
national |
bool | false |
Format as national number (0711 ...) instead of international |
- PHP ^8.1
- TYPO3 ^12.4, ^13.4 or ^14.0
GPL-2.0-or-later
This extension was created by David Steeb in 2026 for b13 GmbH, Stuttgart.
Phone number parsing is powered by libphonenumber-for-php-lite.
Find more TYPO3 extensions we have developed that help us deliver value in client projects. As part of our work, we focus on testing and best practices to ensure long-term performance, reliability, and results in all our code.