Skip to content
Validate a phone number using Laravel's powerful validation feature.
Branch: master
Clone or download
Latest commit f1cc763 Apr 9, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Resolves #1 Apr 9, 2019
.gitignore Initial commit Sep 13, 2018
composer.json Keywords added to composer.json Sep 16, 2018 Badges added Sep 16, 2018

Validate a phone number

Scrutinizer Code Quality Latest Stable Version Monthly Downloads License

Using Laravel's powerful validation feature.


  • PHP >= 7.0.0
  • Laravel >= 5.5


Install the package via the Composer package manager:

$ composer require soved/laravel-phone-number-validation


You may use the phone number validation as any other validation rule:


    'phone_number' => 'required|string|phone_number',

If needed, you may customize the validation error message by adding an entry to the validation language file:

'phone_number' => 'The phone number format is invalid.',

'accepted' => 'The :attribute must be accepted.',

// The rest of the validation error messages...

Security Vulnerabilities

If you discover a security vulnerability within this project, please send an e-mail to Sander de Vos via All security vulnerabilities will be promptly addressed.


This package is open-source software licensed under the MIT license.

You can’t perform that action at this time.