PHPackages                             cloudcatch/gravityforms-phone-validation - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. cloudcatch/gravityforms-phone-validation

ActiveWordpress-plugin[Validation &amp; Sanitization](/categories/validation)

cloudcatch/gravityforms-phone-validation
========================================

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

1.0.0(1y ago)02GPL-2.0-or-laterPHPPHP &gt;=8.1

Since Mar 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/CloudCatch/gravityforms-phone-validation)[ Packagist](https://packagist.org/packages/cloudcatch/gravityforms-phone-validation)[ Docs](https://cloudcatch.io)[ RSS](/packages/cloudcatch-gravityforms-phone-validation/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Gravity Forms Phone Validation
==============================

[](#gravity-forms-phone-validation)

This plugin uses the [libphonenumber for PHP](https://github.com/giggsey/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
------------

[](#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
----------

[](#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](https://private-user-images.githubusercontent.com/1517909/422296864-c95dd81f-5308-4e10-9ae5-0731d0ac6ac7.png?jwt=e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tJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDQwNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjA0MDdUMDAxMDE4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NzcxMGU2YTRlMTgzNThkMjIwYTJhOTA0ZjcyMmE3YWJkODA2ODVkZTBkMDgyODQ5YzkxODk1OTg0ZmU2MDVkYSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.rG2KsDGo9JBJCU2zZ8GfCQKjbPEZPuW9oUDIpOeQ0k8)

Usage
-----

[](#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](https://private-user-images.githubusercontent.com/1517909/422296573-8daaa25c-ad41-4ec2-9825-5adcf8c3a5d3.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzU1MjA5MTgsIm5iZiI6MTc3NTUyMDYxOCwicGF0aCI6Ii8xNTE3OTA5LzQyMjI5NjU3My04ZGFhYTI1Yy1hZDQxLTRlYzItOTgyNS01YWRjZjhjM2E1ZDMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDQwNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjA0MDdUMDAxMDE4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZDk4Zjc0ZjdhZDdiMmZmOWEzNjdmZmE3ZmYzNTBiZjRhMTU3OTk0ZmU5ODI1MzZlYTNlOTRhNDU5ZjFiMjE0MCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.A_ORzMZv6Hs-OPV6F65H3ejbEl2nWYWk1ydGtEjratg)](https://private-user-images.githubusercontent.com/1517909/422296573-8daaa25c-ad41-4ec2-9825-5adcf8c3a5d3.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzU1MjA5MTgsIm5iZiI6MTc3NTUyMDYxOCwicGF0aCI6Ii8xNTE3OTA5LzQyMjI5NjU3My04ZGFhYTI1Yy1hZDQxLTRlYzItOTgyNS01YWRjZjhjM2E1ZDMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDQwNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjA0MDdUMDAxMDE4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZDk4Zjc0ZjdhZDdiMmZmOWEzNjdmZmE3ZmYzNTBiZjRhMTU3OTk0ZmU5ODI1MzZlYTNlOTRhNDU5ZjFiMjE0MCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.A_ORzMZv6Hs-OPV6F65H3ejbEl2nWYWk1ydGtEjratg)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance45

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

431d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1517909?v=4)[David Jensen](/maintainers/dkjensen)[@dkjensen](https://github.com/dkjensen)

---

Top Contributors

[![dkjensen](https://avatars.githubusercontent.com/u/1517909?v=4)](https://github.com/dkjensen "dkjensen (6 commits)")

---

Tags

validationphonelibphonenumbergravityforms

### Embed Badge

![Health badge](/badges/cloudcatch-gravityforms-phone-validation/health.svg)

```
[![Health](https://phpackages.com/badges/cloudcatch-gravityforms-phone-validation/health.svg)](https://phpackages.com/packages/cloudcatch-gravityforms-phone-validation)
```

###  Alternatives

[propaganistas/laravel-phone

Adds phone number functionality to Laravel based on Google's libphonenumber API.

3.0k35.7M107](/packages/propaganistas-laravel-phone)[giggsey/libphonenumber-for-php

A library for parsing, formatting, storing and validating international phone numbers, a PHP Port of Google's libphonenumber.

5.0k148.7M416](/packages/giggsey-libphonenumber-for-php)[giggsey/libphonenumber-for-php-lite

A lite version of giggsey/libphonenumber-for-php, which is a PHP Port of Google's libphonenumber

8912.9M47](/packages/giggsey-libphonenumber-for-php-lite)[borales/yii2-phone-input

Yii2 International telephone numbers - Asset Bundle, Behavior, Validator, Widget

1341.6M6](/packages/borales-yii2-phone-input)[stuyam/laravel-phone-validator

A phone validator for Laravel using the free Twilio phone lookup service.

2861.3k](/packages/stuyam-laravel-phone-validator)[ellisio/laravel-phone

A phone validator for Laravel using the free Twilio phone lookup service.

1130.0k](/packages/ellisio-laravel-phone)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
