On this page

View Helpers

FormTel

The FormTel view helper can be used to render an <input type="tel"> HTML5 form input.

Basic usage

use Laminas\Form\Element;

$element = new Element('my-tel');

// Within your view...
echo $this->formTel($element);

Output:

<input type="tel" name="my-tel" value="">