PHP code example of matiasiglesias / cuit-validator

1. Go to this page and download the library: Download matiasiglesias/cuit-validator library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

matiasiglesias / cuit-validator example snippets


array(
	'modules' => array(
		'Application',
		'CuitValidator',
		// ...
	),
);

    

        $inputFilter->add($factory->createInput(array(
            'name'     => 'cuit',
            '            'validators' => array(
                array(
                    'name' => 'CuitValidator\Validator\Cuit',
                    'options' => array(
                        'incluirEmpresas' => true, //Permite CUIT de Empresas o Personas Juridicas
                        'incluirPersonas' => true, //Permite CUIT de Personas Fisicas
                        'filtrarCuitNoNumerico' => true, //Filtra cualquier caracter no numérico del CUIT (ej. '-')
                    ),
                ),
            )
        )));

    
bash
$ php composer.phar update