Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Yii extension for UK phone numbers validation
PHP
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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.

Something went wrong with that request. Please try again.