1. Go to this page and download the library: Download web-complete/form 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/ */
web-complete / form example snippets
[
[field, filter, params]
]
[
[field, validator, params, message]
]
[
['name', 'string', ['min' => 3]],
['data.nested.field', 'string', ['min' => 3]],
['age'], // this field is considered as safe
]
public function __construct(
$rules = null,
$filters = null,
$validatorsObject = null,
$filtersObject = null
)