Phone Number
Plugin for formatting and validating phone numbers in Payload CMS.
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
Similar plugins
More in FieldsGoogle One Tap
Adds Google One Tap sign-in to the Payload admin login page using OAuth credentials.
Default Roles
Applies default role-based access control to every Payload collection, granting CRUD access to specified roles such as admin and executive.
Warding
RBAC plugin that generates user and role collections and injects fine-grained access control across Payload collections, globals, fields, and endpoints.
Simple RBAC
Enables role-based access control in Payload CMS.
Magic Login
A Magic Login plugin for Payload CMS that simplifies user authentication.
RBAC
Adds role-based access control to your Payload CMS.