PHPackages                             laravel-validation-rules/phone - 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. laravel-validation-rules/phone

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

laravel-validation-rules/phone
==============================

Validate that a phone number is in the correct format

2.1.0(3mo ago)69370.9k↑15.9%11Apache-2.0PHPPHP ^8.0CI failing

Since Sep 12Pushed 3mo ago5 watchersCompare

[ Source](https://github.com/laravel-validation-rules/phone)[ Packagist](https://packagist.org/packages/laravel-validation-rules/phone)[ Docs](https://github.com/laravel-validation-rules/phone)[ RSS](/packages/laravel-validation-rules-phone/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (8)Versions (13)Used By (0)

Phone
=====

[](#phone)

Validates phone number format.

 [ ![](https://camo.githubusercontent.com/a95cbf76ff89d84fd20431759a86cdb04aa59556ce6dae768312e0567cc6b330/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c61726176656c2d76616c69646174696f6e2d72756c65732f70686f6e652e7376673f7374796c653d666c61742d737175617265) ](https://travis-ci.org/laravel-validation-rules/phone) [ ![](https://camo.githubusercontent.com/6447d7845d21d381ddfe6ea8280a242cfa89f12f56efe815371143c4784311bc/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6c61726176656c2d76616c69646174696f6e2d72756c65732f70686f6e652e7376673f7374796c653d666c61742d737175617265) ](https://scrutinizer-ci.com/g/laravel-validation-rules/phone/code-structure/master/code-coverage) [ ![](https://camo.githubusercontent.com/7c0fb4ead9667b7791360b3b81492e0fffbf52d6170369721b39fa04d6da3254/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6c61726176656c2d76616c69646174696f6e2d72756c65732f70686f6e652e7376673f7374796c653d666c61742d737175617265) ](https://scrutinizer-ci.com/g/laravel-validation-rules/phone) [ ![](https://camo.githubusercontent.com/5d672fe87d3f3f635d5d2f7b566c9b3cf7f12d135f194d077a81c4eea9d38a8c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6c61726176656c2d76616c69646174696f6e2d72756c65732f70686f6e652e7376673f7374796c653d666c61742d737175617265) ](https://github.com/laravel-validation-rules/phone/blob/master/LICENSE) [ ![](https://camo.githubusercontent.com/11b33a21f687931b6830edabbf36761bf23f2ab7aa59259f78e91f4bcfc2fba6/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d4074796c657263643130302d626c75652e7376673f7374796c653d666c61742d737175617265) ](https://twitter.com/tylercd100)

Installation
------------

[](#installation)

```
composer require laravel-validation-rules/phone
```

Usage
-----

[](#usage)

```
use LVR\Phone\Phone;
use LVR\Phone\E123;
use LVR\Phone\E164;
use LVR\Phone\NANP;
use LVR\Phone\Digits;

// Test any phone number
$request->validate(['test' => '15556667777'], ['test' => new Phone]); // Pass!
$request->validate(['test' => '+15556667777'], ['test' => new Phone]); // Pass!
$request->validate(['test' => '+1 (555) 666-7777'], ['test' => new Phone]); // Pass!

// Test for E123
$request->validate(['test' => '+22 555 666 7777'], ['test' => new E123]); // Pass!

// Test for E164
$request->validate(['test' => '+15556667777'], ['test' => new E164]); // Pass!

// Test for NANP (North American Numbering Plan)
$request->validate(['test' => '+1 (555) 666-7777'], ['test' => new NANP); // Pass!

// Test for digits only
$request->validate(['test' => '15556667777'], ['test' => new Digits]); // Pass!
```

###  Health Score

60

—

FairBetter than 98% of packages

Maintenance78

Regular maintenance activity

Popularity49

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Every ~309 days

Recently: every ~372 days

Total

11

Last Release

116d ago

Major Versions

1.9.0 → 2.0.02025-11-23

PHP version history (3 changes)1.0.0PHP ^7.0

1.6.0PHP ^7.0|^8.0

2.0.0PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/254889?v=4)[Scott](/maintainers/ssx)[@ssx](https://github.com/ssx)

![](https://www.gravatar.com/avatar/5d0f17a08e8038aafdd451317206dda9429dfda2c7cbadb0c0796e25367108d5?d=identicon)[tylercd100](/maintainers/tylercd100)

---

Top Contributors

[![tylercd100](https://avatars.githubusercontent.com/u/4522226?v=4)](https://github.com/tylercd100 "tylercd100 (15 commits)")[![parth391](https://avatars.githubusercontent.com/u/4966579?v=4)](https://github.com/parth391 "parth391 (10 commits)")[![ssx](https://avatars.githubusercontent.com/u/254889?v=4)](https://github.com/ssx "ssx (8 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (2 commits)")[![judahnator](https://avatars.githubusercontent.com/u/8620392?v=4)](https://github.com/judahnator "judahnator (1 commits)")

---

Tags

laravelphonephprulesvalidationlaravelvalidatorphonetylercd100

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/laravel-validation-rules-phone/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k95.4M305](/packages/laravel-horizon)[laravel/sail

Docker files for running a basic Laravel application.

1.9k205.7M1.3k](/packages/laravel-sail)[illuminate/database

The Illuminate Database package.

2.8k54.9M11.6k](/packages/illuminate-database)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[propaganistas/laravel-disposable-email

Disposable email validator

6023.0M7](/packages/propaganistas-laravel-disposable-email)

PHPackages © 2026

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