Search by

b13 / phone-number

davidsteeb

Fluid ViewHelper for formatting phone numbers using libphonenumber

Package info

github.com/b13/phone-number

Homepage

Type:typo3-cms-extension

pkg:composer/b13/phone-number

Statistics

Installs: 4

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.2 2026-10-13 18:55 UTC

This package is auto-updated.

Last update: 2026-10-13 18:56:17 UTC


README

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).

Installation

composer req b13/phone-number

Usage

Register the namespace in your Fluid template:

<html
    data-namespace-typo3-fluid="true"
    xmlns:phone="http://typo3.org/ns/B13/PhoneNumber/ViewHelpers"
>

International format (default)

<phone:format value="tel:+497113400810" />

Output: +49 711 3400810

National format

<phone:format value="tel:+497113400810" national="1" />

Output: 0711 3400810

Raw number input

<phone:format value="+49 (0) 711 34008-10" />

Output: +49 711 3400810

ViewHelper Arguments

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

Requirements

  • PHP ^8.1
  • TYPO3 ^12.4, ^13.4 or ^14.0

License

GPL-2.0-or-later

Credits

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.