laravel-validation-rules/phone

Validate that a phone number is in the correct format
387,805 69
Install
composer require laravel-validation-rules/phone
Latest Version:2.1.0
PHP:^8.0
Laravel:10 · 11 · 12
Older releases:5 – 9
License:Apache-2.0
Last Updated:Oct 12, 2026
Links: GitHub  ·  Packagist
Maintainer: ssx

Phone

Validates phone number format.

Installation

composer require laravel-validation-rules/phone

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!

Related Packages

laravel-validation-rules/us-state

Validate US States and Canada Provinces

190,739 16
tylercd100/laravel-validator-phone

Validate that a phone number is in the correct format

4,377 3
tylercd100/laravel-validator-state

Validate that a states and provinces for US and Canada

44 1
tylercd100/laravel-validator-color

Validate that a certain value is a valid CSS color string in Laravel 5

81,706 15
stuyam/laravel-phone-validator

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

63,024 28

Version History

Version Released PHP Laravel License
2.1.0 ^8.0 ^10.0|^11.0|^12.0 Apache-2.0
2.0.0 ^8.0 ^10.0|^11.0 Apache-2.0
1.9.0 ^7.0|^8.0 ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0 Apache-2.0
1.8.0 ^7.0|^8.0 ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0 Apache-2.0
1.7.0 ^7.0|^8.0 ^5.5|^6.0|^7.0|^8.0|^9.0 Apache-2.0