PHP code example of fcodedigital / zend_validators

1. Go to this page and download the library: Download fcodedigital/zend_validators 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/ */

    

fcodedigital / zend_validators example snippets


$inputFilter->add(array(
    'name'     => 'cpf',
    'pTags'),
        array('name' => 'StringTrim'),
    ),
    'validators' => array(
        array(
            'name'    => 'StringLength',
            'options' => array(
                'encoding' => 'UTF-8',
                'min'      => 11,
                'max'      => 11,
            ),
        ),
        array(
            'name' => 'FCodeDigital\Validators\CPF'
        ),
    ),
));