PHP code example of func0der / ze-content-validation

1. Go to this page and download the library: Download func0der/ze-content-validation 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/ */

    

func0der / ze-content-validation example snippets


'ze-content-validation' => [
    'user.add' => [
        'POST' =>  \App\InputFilter\UserInputFilter::class
    ],
],

    'input_filter_specs' => [
        'App\\InputFilter\\LoginInputFilter' => [
            0 => [
                'name' => 'displayName',
                '      ]   
                ],
                
            ],
            1 => [
                'name' => 'password',
                '                 'min' => 8, 
                            'max' => 12
                        ],
                    ],
                ],                
            ],
        ],
    ],