faker.providers.phone_number.tl_PH
¶
Package Contents¶
Classes¶
Provider for Philippine mobile and landline telephone numbers |
|
No difference from Phone Number Provider for en_PH locale |
- class faker.providers.phone_number.tl_PH.EnPhPhoneNumberProvider(generator: Any)¶
Bases:
faker.providers.BaseProvider
Provider for Philippine mobile and landline telephone numbers
This provider has methods that generate phone numbers specific to service providers whenever applicable, because the kinds of services, the quality of said services, and even the fees may vary depending on the service provider and the service location. This in turn, affects subscriber behavior, e.g. someone with a SIM from company X may be very unlikely to respond to calls and texts sent from a company Y SIM as the service charge might be more expensive. The provider methods are there to enable the creation of more “realistic” fake data for such cases.
- Additional Notes:
The Philippine telecommunication industry is dominated by the Globe-PLDT duopoly. Globe offers landline services under the Globe brand and mobile services under the Globe and TM brands. PLDT offers landline services under the PLDT brand, and its subsidiaries offer mobile services under the Smart, TNT, and SUN brands. The rest of the industry is shared by smaller players, and Bayantel is one of the more well-known players that provide landline services.
Globe mobile prefixes include both Globe and TM brands, and the Smart mobile prefixes include both Smart and TNT brands but not the SUN brand. Available sources only split the prefixes this way.
In October 2019, Area 2 landline numbers were migrated to an 8 digit scheme, while the rest of the country still uses the original 7 digit scheme. Area 2 is comprised of the whole National Capital Region (aka Metro Manila) and parts of surrounding provinces, and within this area, the service provider’s identifier is included in every 8 digit landline number.
- Sources:
- globe_mobile_number_prefixes: Tuple[str, Ellipsis] = ('817', '904', '905', '906', '915', '916', '917', '926', '927', '935', '936', '937', '945',...¶
- smart_mobile_number_prefixes: Tuple[str, Ellipsis] = ('813', '907', '908', '909', '910', '911', '912', '913', '914', '918', '919', '920', '921',...¶
- sun_mobile_number_prefixes: Tuple[str, Ellipsis] = ('922', '923', '924', '925', '931', '932', '933', '934', '941', '942', '943', '944')¶
- globe_mobile_number_formats: Tuple[str, Ellipsis] = ('0{{globe_mobile_number_prefix}}-###-####', '+63{{globe_mobile_number_prefix}}-###-####')¶
- smart_mobile_number_formats: Tuple[str, Ellipsis] = ('0{{smart_mobile_number_prefix}}-###-####', '+63{{smart_mobile_number_prefix}}-###-####')¶
- sun_mobile_number_formats: Tuple[str, Ellipsis] = ('0{{sun_mobile_number_prefix}}-###-####', '+63{{sun_mobile_number_prefix}}-###-####')¶
- non_area2_landline_area_codes: Tuple[str, Ellipsis] = ('32', '33', '34', '35', '36', '38', '42', '43', '44', '45', '46', '47', '48', '49', '52', '53',...¶
- bayantel_area2_landline_number_formats: Tuple[str, Ellipsis] = ('02-{{bayantel_landline_identifier}}-####', '+632-{{bayantel_landline_identifier}}-####')¶
- misc_area2_landline_number_formats: Tuple[str, Ellipsis] = ('02-{{misc_landline_identifier}}-####', '+632-{{misc_landline_identifier}}-####')¶
- class faker.providers.phone_number.tl_PH.Provider(generator: Any)¶
Bases:
faker.providers.phone_number.en_PH.Provider
No difference from Phone Number Provider for en_PH locale