Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Phone Validator (most phone number formats)

Total Downloads Latest Stable Version License

Introduction

Phone Validator is a simple validator phone number.

Installation

To get started with Phone Validator, simply run:

composer require fixik/phone-validator

Next, register the Fixik\Validator\PhoneValidatorServiceProvider in your config/app.php file:

'providers' => [
    // Other service providers...

    Fixik\Validator\PhoneValidatorServiceProvider::class,
],

Basic Usage

From your validator use method phone

Add validation message

resources/lang/en/validation.php

    'phone' => 'The :attribute field contains an invalid phone number'

License

Phone Validator is open-sourced software licensed under the MIT license

About

Laravel Phone Validation

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages