PHP code example of fp / jsformvalidator-bundle

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

    

fp / jsformvalidator-bundle example snippets




return [
    // ...
    Fp\JsFormValidatorBundle\FpJsFormValidatorBundle::class => ['all' => true],
];
twig
{{ form_start(form) }}
    {{ form_widget(form) }}
{{ form_end(form) }}

{{ init_js_validation(form) }}
twig
{{ init_js_validation(form, false) }}