New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

tylercd100/laravel-validator-phone

Validate that a phone number is in the correct format
4,377 3

Larablocks Analysis

tylercd100/laravel-validator-phone works with Laravel 5 (latest release 1.3.0, Feb 23, 2017), which reached end of life: no more fixes, even for security.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 5, past end of life
  • No release in the last 12 months (last: Feb 23, 2017)
  • 0 downloads a month (needs 10,000)
  • 3 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Feb 23, 2017.
  • No releases in the last 12 months.
  • First released: Feb 14, 2017.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 27, 2026.

Install
composer require tylercd100/laravel-validator-phone
Latest Version:1.3.0
PHP:^5.5.9|^7.0
Laravel:5
License:MIT
Last Updated:Oct 18, 2017
Links: GitHub  ·  Packagist
Maintainer: tylercd100

Validate phone numbers with Laravel 5

Latest Version Software License Build Status Scrutinizer Code Quality Code Coverage Total Downloads

This Package has moved to here for laravel 5.5+. Please use that instead. Also check out these other community validation rules

This package only checks phone number formatting and not actual number validity.

Installation

Install via composer - In the terminal:

composer require tylercd100/laravel-validator-phone

Now add the following to the providers array in your config/app.php

Tylercd100\Validator\Phone\ServiceProvider::class

Usage

// Test any phone number
Validator::make(['test' => '15556667777'], ['test' => 'phone']); //true
Validator::make(['test' => '+15556667777'], ['test' => 'phone']); //true
Validator::make(['test' => '+1 (555) 666-7777'], ['test' => 'phone']); //true

// Test for E164
Validator::make(['test' => '+15556667777'], ['test' => 'phone:E164']); //true

// Test for NANP (North American Numbering Plan)
Validator::make(['test' => '+1 (555) 666-7777'], ['test' => 'phone:NANP']); //true

// Test for digits only
Validator::make(['test' => '15556667777'], ['test' => 'phone:digits']); //true

Alternatives to tylercd100/laravel-validator-phone

laravel-validation-rules/phone

Validate that a phone number is in the correct format

395,081 69
stuyam/laravel-phone-validator

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

63,478 28

Version History

Version Released PHP Laravel License
1.3.0 ^5.5.9|^7.0 ^5.0 MIT
1.2.0 ^5.5.9|^7.0 ^5.0 MIT
1.1.1 ^5.5.9|^7.0 ^5.0 MIT
1.1.0 ^5.5.9|^7.0 ^5.0 MIT
1.0.0 ^5.5.9|^7.0 ^5.0 MIT