ukphonevalidator Simple validator for United Kingdom phone numbers validation.

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

Requirements

Yii 1.0 or above

Usage Extract UKPhoneValidator.php to your extension directory. 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. Resources

2 0
4 followers
338 downloads
Yii Version: Unknown
License: BSD-2-Clause
Category: Validation
Developed by: ineersa
Created on: Jul 26, 2013
Last updated: 4 years ago

Downloads

show all

Related Extensions