laravel-validation-rules / phone

Licence: Apache-2.0 license
Validate phone number format

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to phone

Arg.js
🇦🇷 🛠 NPM library. Validation of Argentinian bank account numbers, IDs and phone numbers
Stars: ✭ 52 (-17.46%)
Mutual labels:  validation, phone
Laravel Phone
Phone number functionality for Laravel
Stars: ✭ 1,806 (+2766.67%)
Mutual labels:  validation, phone
Laravel Validation Rules
A set of useful Laravel validation rules
Stars: ✭ 374 (+493.65%)
Mutual labels:  rules, validation
commitlint-plugin-function-rules
Commitlint plugin to define rules as functions.
Stars: ✭ 21 (-66.67%)
Mutual labels:  rules
Katari
Katari - Python Session Initiated Protocol Framework
Stars: ✭ 29 (-53.97%)
Mutual labels:  phone
react-native-validator-form
Simple validator for react-native forms.
Stars: ✭ 21 (-66.67%)
Mutual labels:  validation
EngineX
Engine X - 实时AI智能决策引擎、规则引擎、风控引擎、数据流引擎。 通过可视化界面进行规则配置,无需繁琐开发,节约人力,提升效率,实时监控,减少错误率,随时调整; 支持规则集、评分卡、决策树,名单库管理、机器学习模型、三方数据接入、定制化开发等;
Stars: ✭ 369 (+485.71%)
Mutual labels:  rules
woapp
web模拟安卓操作系统,php开发,内置文件管理,电话,短信,拍照,用在树莓派上可做智能家居,视频监控,机顶盒等……
Stars: ✭ 22 (-65.08%)
Mutual labels:  phone
odin
Data-structure definition/validation/traversal, mapping and serialisation toolkit for Python
Stars: ✭ 24 (-61.9%)
Mutual labels:  validation
valify
Validates data in JavaScript in a very simple way
Stars: ✭ 13 (-79.37%)
Mutual labels:  validation
openui5-validator
A library to validate OpenUI5 fields
Stars: ✭ 17 (-73.02%)
Mutual labels:  validation
validation
Aplus Framework Validation Library
Stars: ✭ 99 (+57.14%)
Mutual labels:  validation
SwordCoastStratagems
Sword Coast Stratagems (SCS) adds over 130 optional components to Baldur's Gate: Enhanced Edition, Baldur's Gate II: Enhanced Edition, Baldur's Gate II: Throne of Bhaal, Baldur's Gate Trilogy, mostly focused around improving monster AI and encounter difficulties, but also including cosmetic and ease-of-use components, tweaks to abilities or spells.
Stars: ✭ 43 (-31.75%)
Mutual labels:  rules
gavel-spec
Behavior specification for Gavel, validator of HTTP transactions
Stars: ✭ 105 (+66.67%)
Mutual labels:  validation
hapic
Input/Output/Error management for your python controllers with Swagger doc generation
Stars: ✭ 18 (-71.43%)
Mutual labels:  validation
MobyDroid
Android Device Manager with a Graphic User Interface (GUI) – Manage Android on Linux, Windows and MacOS.
Stars: ✭ 76 (+20.63%)
Mutual labels:  phone
cue
The new home of the CUE language! Validate and define text-based and dynamic configuration
Stars: ✭ 2,466 (+3814.29%)
Mutual labels:  validation
jsonlint
JSON/CJSON/JSON5 parser, syntax & schema validator and pretty-printer with a command-line client, written in pure JavaScript.
Stars: ✭ 21 (-66.67%)
Mutual labels:  validation
SwiftyCodeView
Fully customizable UI Component for verification codes written in swift with RxSwift support!
Stars: ✭ 86 (+36.51%)
Mutual labels:  phone
Maat
Validation and transformation library powered by deductive ascending parser. Made to be extended for any kind of project.
Stars: ✭ 27 (-57.14%)
Mutual labels:  validation

Phone

Validates phone number format.

Installation

composer require laravel-validation-rules/phone

Usage

use LVR\Phone\Phone;
use LVR\Phone\E123;
use LVR\Phone\E164;
use LVR\Phone\NANP;
use LVR\Phone\Digits;

// Test any phone number
$request->validate(['test' => '15556667777'], ['test' => new Phone]); // Pass!
$request->validate(['test' => '+15556667777'], ['test' => new Phone]); // Pass!
$request->validate(['test' => '+1 (555) 666-7777'], ['test' => new Phone]); // Pass!

// Test for E123
$request->validate(['test' => '+22 555 666 7777'], ['test' => new E123]); // Pass!

// Test for E164
$request->validate(['test' => '+15556667777'], ['test' => new E164]); // Pass!

// Test for NANP (North American Numbering Plan)
$request->validate(['test' => '+1 (555) 666-7777'], ['test' => new NANP); // Pass!

// Test for digits only
$request->validate(['test' => '15556667777'], ['test' => new Digits]); // Pass!
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].