Yii extension for UK phone numbers validation
PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitattributes
.gitignore
README.md
UKPhoneValidator.php

README.md

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.