Skip to main content

phone Domain

The phone domain maps domain keywords to underlying faker implementations.

Faker Documentation

Methods

phone.imei

Generates IMEI number.

No parameters.

Examples:

Shows the default phone.imei call.

phone.imei

Returns: 47-031013-354628-7

phone.number

Generates a random phone number.

ArgTypeRequiredDescription
stylehuman|national|internationalnoStyle of the generated phone number: 'human': (default) A human-input phone number, e.g. 555-770-7727 or 555.770.7727 x1234 'national': A phone number in a standardized national format, e.g. (555) 123-4567. 'international': A phone number in the E.123 international format, e.g. +15551234567

Examples:

Shows phone.number when optional params are omitted.

phone.number()

Returns: 1-703-301-3354 x628

Shows phone.number using style.

phone.number(style="international")

Returns: +15704101335