New

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

stuyam/laravel-phone-validator

A phone validator for Laravel using the free Twilio phone lookup service.
63,478 28

Larablocks Analysis

stuyam/laravel-phone-validator works with Laravel 5 to 10 (latest release 1.0.10, Apr 1, 2023), all past end of life (the last on Feb 4, 2025): no more fixes, even for security.

Recommendation checks

Use with care

Use with care: meets 0 of 4 checks.

  • Supports only Laravel 5 to 10, past end of life since Feb 4, 2025
  • No release in the last 12 months (last: Apr 1, 2023)
  • 330 downloads a month (needs 10,000)
  • 28 GitHub stars (needs 100)

State

Quiet
  • Last stable release: Apr 1, 2023.
  • No releases in the last 12 months.
  • First released: Jul 13, 2016.
  • Monthly downloads: 330, up 64% from six months ago.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 1, 2026.

Install
composer require stuyam/laravel-phone-validator
Latest Version:1.0.10
Laravel:5 – 10
License:MIT
Last Updated:May 10, 2026
Links: GitHub  ·  Packagist
Maintainer: stuyam

Lavarel Phone Validator

Packagist Packagist

A phone validator for Laravel using the FREE Twilio phone lookup service

This custom validator validates that a phone number actual exists. Not just if it has a specific format or not, but if the phone number is a real registered phone number. It is smart enough to handle formated numbers like (123)-555-1234 and unfromated numbers like 1235551234 so users can enter in a phone number however they are most comfortable.

For a working example check out Laravel Validator Example project.

Also see: Laravel Kickbox Validator for email address validation.

Step 1

Install via composer:

composer require stuyam/laravel-phone-validator

Step 2

Add to your config/app.php service provider list:

StuYam\PhoneValidator\PhoneValidatorServiceProvider::class

Step 3

Add Twilio credentials to your .env file:

(If you don't have a Twilio account you can go to Twilio.com and make a free account)

TWILIO_SID=xxxxxxxx
TWILIO_TOKEN=xxxxxxxx

Usage

Add the string 'phone' to a form request rules or validator like so:

<?php

namespace App\Http\Requests;

use App\Http\Requests\Request;

class PhoneFormRequest extends Request
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
        	// this means the phone input will be validated that
        	// it is required and that it is an ACTUAL phone number
            'phone' => 'required|phone'
        ];
    }
}

Alternatives to stuyam/laravel-phone-validator

propaganistas/laravel-phone

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

50,357,851 3,040
laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2,706,723 246
proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rul...

2,564,741 1,137
illuminatech/validation-composite

Allows uniting several validation rules into a single one for easy re-usage

612,589 181
sadegh19b/laravel-persian-validation

A comprehensive Laravel validation package for Persian text, numbers, dates, and...

116,377 187

Version History

Version Released Laravel License
1.0.10 ^5.0|^6.0|^7.0|^8.0|^9.0|^10.0 MIT
1.0.9 ^5.0|^6.0|^7.0|^8.0|^9.0 MIT
1.0.8 ^5.0|^6.0|^7.0|^8.0 MIT
1.0.7 ^5.0|^6.0|^7.0 MIT
1.0.6 ^5.0|^6.0 MIT