OlegMarko / phone-validator

Laravel Phone Validation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:PHP 100.0%