cloudcatch/gravityforms-phone-validation 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cloudcatch/gravityforms-phone-validation

最新稳定版本:1.0.0

Composer 安装命令:

composer require cloudcatch/gravityforms-phone-validation

包简介

A Gravity Forms plugin that adds phone number validation using libphonenumber-for-php

README 文档

README

This plugin uses the libphonenumber for PHP to validate Gravity Forms phone number fields against a given region specified through the plugin settings. This plugin was created to help mitigate form submissions that contain invalid / fake phone numbers.

Installation

composer require cloudcatch/gravityforms-phone-validation

You can manually install this plugin by cloning this repository, and installing the requires dependencies:

# Clone the repository
git clone https://github.com/CloudCatch/gravityforms-phone-validation.git

# Change directory
cd gravityforms-phone-validation

# Install dependencies
composer install --no-dev

# Optionally generate a plugin zip which will output in the ./dist directory
composer run plugin-zip

How to use

  • Install and activate the plugin
  • Navigate to the Gravity Forms settings page: Forms > Settings
  • On this main settings page, towards the bottom is a field labeled Phone Validation Region, specify the region in which you want to validate phone numbers against, and save.

image

Usage

This plugin by default will validate against US based phone numbers unless otherwise specified in the Gravity Forms settings.

Submitting any form containing a Phone field type will now validate the phone number against the region.

image

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2025-03-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固