frphonevalidator Simple validator for french phone numbers

  1. Requirements
  2. Usage

Seeing ineersa ukphonevalidator, I remember I add a validator for french phone numbers, so I made it working with Yii

Requirements

Yii 1.1

Usage

Extract FRPhoneValidator.php to your extension directory.

You can now use it as validation rule:

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

I kept the allowEmpty possibility.

3 0
2 followers
288 downloads
Yii Version: Unknown
License: BSD-2-Clause
Category: Validation
Developed by: CrazyCat
Created on: Jul 26, 2013
Last updated: 10 years ago

Downloads

show all

Related Extensions