PHP code example of matiasiglesias / cbu-validator

1. Go to this page and download the library: Download matiasiglesias/cbu-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 / cbu-validator example snippets


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

    

        $inputFilter->add($factory->createInput(array(
            'name'     => 'cbu',
            '
            'validators' => array(
                array(
                    'name' => 'CBUValidator\Validator\CBU',
                    'options' => array(
                        'filterNumeric' => true, //Filtra cualquier caracter no numérico del CBU (ej. '-')
                    ),
                ),
            )
        )));

    
bash
$ php composer.phar update