Phone Number

Plugin for formatting and validating phone numbers in Payload CMS.

Community 14 254/wk MIT v1.7.0

Installation

pnpm add payload-phone-number-plugin

About

The Phone Number Plugin for Payload CMS allows users to format and validate phone numbers using libphonenumber-js. It integrates seamlessly into the Payload Admin panel, providing features like as-you-type formatting based on the selected country and pre-validation of phone numbers. Users can restrict selection to specific countries and set project-wide defaults for phone number formatting. This plugin supports various display formats such as E.164, national, and international formats, as well as options for displaying country prefixes. It has full TypeScript support with generated phone number types, enabling users to manage phone numbers programmatically with clear typing. When saving phone numbers, the plugin handles validation and ensures they are stored in E.164 format. Customization options allow configurations of allowed countries, default countries, and formats for display, catering to specific project requirements. Users can easily include the phone number field in their collections with clearly defined configurations.

Package info

Package name
payload-phone-number-plugin
Latest version
1.7.0
Unpacked size
248 kB
License
MIT
Weekly downloads
254
Last publish
Apr 28, 2026

More from adsign

View profile

Similar plugins

More in Fields