Skip to content

ineersa/UKPhoneValidator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

UKPhoneValidator

UKPhoneValidator is an extension for validation of United Kingdom phone numbers in all possible ways.

Requirements

Yii 1.0 or above

Usage

The following model code validates attribute in UKPhoneValidator:


public function rules()
{
   return array(
      array('phone', 'application.extensions.UKPhoneValidator')
           );
}

Also allowEmpty can be set and message for empty entry.

About

Yii extension for UK phone numbers validation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages