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 FieldsPhone Field
Adds a phone number field to Payload collections with country-code selection and validation, powered by react-phone-number-input.
Base64 image placeholder
Generates a base64-encoded placeholder image for Payload upload collections and stores it in a text field.
AI
Generates and stores vector embeddings for Payload fields using the OpenAI or NLP Cloud APIs.
AI Completions
Payload plugin that generates field content through OpenAI chat completions from the admin panel.
Google Maps Autocomplete Field
Integrates Google Maps Places Autocomplete into Payload CMS.
Better Fields
This plugin provides improved fields for the admin panel in Payload.