Details
Laravel Phone Validation
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
|
Name: |
Laravel Phone Number Validation |
Base name: |
laravel-phone-valida |
Description: |
Validate phone numbers with country codes |
Version: |
- |
PHP version: |
5 |
License: |
The PHP License |
|
|
January 2023
Nominee
Vote |
Many applications need to take the phone numbers of users. Sometimes users enter the numbers with mistakes that make it impossible to reach them. Validation can help avoid users from entering invalid numbers.
There are many types of validation. The most robust validation methods require delivering SMS messages or making phone calls to the user's phone numbers. These methods are acceptable but may take a long time to conclude and often cost money.
More straightforward methods can be used in conjunction with these more robust methods, for instance, client-side or server-side validation of the numbers right after the users enter the numbers.
These more straightforward methods are not so robust but may avoid the most basic mistakes like entering phone numbers with wrong country codes or other errors that can be detected very quickly.
This package provides a service that uses complex regular expressions that can be used to detect simple mistakes.
Manuel Lemos |
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.
|
Files |
|
|
Files |
|