Skip to contents

Core functions

Parse, validate, format, and classify phone numbers.

phone_parse()
Parse a Phone Number
phone_valid()
Validate Phone Numbers
phone_format()
Format Phone Numbers
phone_type()
Detect Phone Number Type
phone_country()
Detect Country of a Phone Number
phone_info()
Get All Phone Number Information

Metadata

Access and update the bundled libphonenumber metadata.

metadata
Access Phone Number Metadata
dv_metadata()
Get the full metadata object
dv_territory()
Get metadata for a specific territory
dv_update_metadata()
Update metadata from upstream