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.1- Unpacked size
- 248 kB
- License
- MIT
- Weekly downloads
- 227
- Last publish
- Jul 22, 2026
Similar plugins
More in FieldsMenus
Adds a menus collection to Payload for building navigation with nested items, collection links, custom URLs, icons, and preview images.
Icon Picker
Adds an icon picker field plugin for Payload CMS with search and SVG support.
Barcodes
Adds Code 128, EAN-13 and QR code generation to Payload product collections with a printable label page and optional admin print buttons.
Shipping Classes
Adds weight, dimensions, and shipping class fields to Payload products and variants, storing values canonically in grams and millimetres for cart totalling.
Downloads
Sells digital products from a Payload store using signed, expiring download links that stop working when an order is refunded.
Order Numbers
Assigns every Payload ecommerce order a short, readable, concurrency-safe number like ORD-01042 via a reservations collection.