Yii 1.1: eabavalidator

A Routing Transit Number Validator
2 followers

This is a ABA Routing Transit Number Validator.

I have created a GitHub repository for those willing to contribute on any of the extensions I created. Please, check the link at the bottom of this wiki.

What is a Routing Transit Number?

A routing transit number (RTN) is a nine digit bank code, used in the United States, which appears on the bottom of negotiable instruments such as checks identifying the financial institution on which it was drawn.

Requirements

Developed using Yii 1.1.6

Usage

Unzip the contents of the package and place it on your protected/extensions folder, then you can use the validator in the following ways:

As an attribute validator

// On your model's rules function
public function rules()
{
   return array(
     array('<attributename>','ext.validators.EABARoutingNumberValidator',
    );
 
}

As standalone class

Yii::import('ext.validators.*');
 
$aba = new EABARoutingNumberValidator();
 
echo 'VALIDATING ABA 222371863: '.
     ($aba->validateABARoutingNumber('222371863')?
      'Seems to be valid':'Validation Failed');

Note

Please make use of the forum post to report errors, requests, and suggestions. Let comments on this extension for coding hints.

Resources

Change Log

version 1.0

  • Initial Public Release

2amigOS!
web development has never been so fun
www.2amigos.us

Be the first person to leave a comment

Please to leave your comment.

Create extension