2017 © Pedro Peláez
 

library laravel-validator-phone

Validate that a phone number is in the correct format

image

tylercd100/laravel-validator-phone

Validate that a phone number is in the correct format

  • Wednesday, October 18, 2017
  • by tylercd100
  • Repository
  • 1 Watchers
  • 2 Stars
  • 1,525 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 3 % Grown

The README.md

Validate phone numbers with Laravel 5

Latest Version Software License Build Status Scrutinizer Code Quality Code Coverage Total Downloads, (*1)

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

This package only checks phone number formatting and not actual number validity., (*3)

Installation

Install via composer - In the terminal:, (*4)

composer require tylercd100/laravel-validator-phone

Now add the following to the providers array in your config/app.php, (*5)

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

The Versions

18/10 2017

dev-master

9999999-dev https://github.com/tylercd100/laravel-validator-phone

Validate that a phone number is in the correct format

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tyler Arbon

laravel validator phone tylercd100

23/02 2017

1.3.0

1.3.0.0 https://github.com/tylercd100/laravel-validator-phone

Validate that a phone number is in the correct format

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tyler Arbon

laravel validator phone tylercd100

18/02 2017

1.2.0

1.2.0.0 https://github.com/tylercd100/laravel-validator-phone

Validate that a phone number is in the correct format

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tyler Arbon

laravel validator phone tylercd100

17/02 2017

1.1.1

1.1.1.0 https://github.com/tylercd100/laravel-validator-phone

Validate that a phone number is in the correct format

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tyler Arbon

laravel validator phone tylercd100

14/02 2017

1.1.0

1.1.0.0 https://github.com/tylercd100/laravel-validator-phone

Validate that a phone number is in the correct format

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tyler Arbon

laravel validator phone tylercd100

14/02 2017

1.0.0

1.0.0.0 https://github.com/tylercd100/laravel-validator-phone

Validate that a phone number is in the correct format

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tyler Arbon

laravel validator phone tylercd100