PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Roman Kozin   Laravel Phone Number Validation   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Read me
Class: Laravel Phone Number Validation
Validate phone numbers with country codes
Author: By
Last change:
Date: 1 year ago
Size: 1,411 bytes
 

Contents

Class file image Download

Laravel Phone Validation

Scrutinizer Code Quality Build Status Code Intelligence Status

Installation

composer require kield-01/laravel-phone-validation

Auto-Discovery

If You would like not to auto-discover this packages' ServiceProvider, You need to put this line into Your composer.json:

{
	"extra": {
		"laravel": {
			"dont-discover": [
				"kield-01/laravel-phone-validation"
			]
		}
	}
}

Provider registration (optional)

If You have this package to be non-discoverable, then You would need to register its ServiceProvider in the app.php:

<?php

return [
    'providers' => [
        KielD01\PhoneValidation\Providers\ValidationServiceProvider::class,    
    ]   
];

Available Validation rules