Skip to content

Extension points

phil/phone-bundle

What an application configures or extends. The numbers are phil/phone's, read with its imported numbering plans.

Configuration

OptionWhat it extends
default_regionThe country a number typed without its country code is read in, by the field, the constraint and the filters — see Installation

Forms and validation

PointHow
The country of one fieldThe region option of PhoneType
Which numbers are acceptedThe types and regions of ValidPhoneNumber, and its region for a text
The messagesThe constraint's message, typeMessage and regionMessage, and its codes INVALID_ERROR, TYPE_ERROR, REGION_ERROR
More than the field doesA form type extension of the application's on PhoneType

See Forms and validation.

Storage and Twig

PointHow
Where a number is keptThe phil_phone column type, E.164 with its extension — see Doctrine
How a number is shownThe phone filter with a format, and phone_link for a tel: address — see Twig