Yii 1.1: ecuitvalidator

Validates CUIT used by AFIP in Argentina.

This extensions allos to validate CUIT numbers used by the AFIP (http://www.afip.gob.ar) in Argentina.

A CUIT is a 11 digit number. The last digit is a validation code. This extension uses this validation code to verify the CUIT, as a way to avoid saving inconsistent data.


Yii 1.0 or above


Extract the release file under a directory of your choice (e.g. protected/extensions/validators) In the model you should use:

public function rules()
   return array(
        array('<attributeName>', 'ext.validators.ECuitValidator'),


Be the first person to leave a comment

Please to leave your comment.

Create extension
  • Yii Version: 1.1
  • License: New BSD License
  • Developed by: jpablo
  • Category: Validation
  • Votes: +2
  • Downloaded: 183 times
  • Created on: Jan 19, 2012
  • Last updated: Jan 19, 2012