PHPackages                             fp/jsformvalidator-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. fp/jsformvalidator-bundle

ActiveSymfony-bundle[Validation &amp; Sanitization](/categories/validation)

fp/jsformvalidator-bundle
=========================

JavaScript validation for Symfony forms.

1.6.1(6y ago)131422.7k↓14%54[18 issues](https://github.com/formapro/JsFormValidatorBundle/issues)1MITJavaScriptPHP &gt;=5.5.9CI passing

Since Dec 9Pushed 2w ago13 watchersCompare

[ Source](https://github.com/formapro/JsFormValidatorBundle)[ Packagist](https://packagist.org/packages/fp/jsformvalidator-bundle)[ Docs](https://github.com/formapro/JsFormValidatorBundle)[ RSS](/packages/fp-jsformvalidator-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (20)Versions (30)Used By (1)

FpJsFormValidatorBundle
=======================

[](#fpjsformvalidatorbundle)

[![CI](https://github.com/formapro/JsFormValidatorBundle/actions/workflows/ci.yml/badge.svg)](https://github.com/formapro/JsFormValidatorBundle/actions/workflows/ci.yml)[![Total Downloads](https://camo.githubusercontent.com/3a82a434f0bc68e0244e7393f2210342e6d11c68b06c0ca062501b5a962abbe7/68747470733a2f2f706f7365722e707567782e6f72672f66702f6a73666f726d76616c696461746f722d62756e646c652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/fp/jsformvalidator-bundle)

FpJsFormValidatorBundle converts Symfony form validation metadata into JavaScript validation rules and attaches client-side validators to rendered forms.

Status
------

[](#status)

This branch has been revived for the current PHP/Symfony baseline:

- PHP 8.4+ runtime support; CI currently verifies PHP 8.4, 8.5, and 8.6 nightly
- Symfony 8.x components as declared in `composer.json`
- Twig 3
- PHPUnit 13
- PHPStan static analysis
- PHP and JavaScript coverage thresholds
- PSR-4 autoloading from `src/`

The old Symfony 2/3 + Assetic + Selenium test application was replaced upstream by a newer `Tests/app` fixture. The maintained test commands now cover the PHP model/factory/controller core, JavaScript constraints, and a Cypress smoke test against the Symfony test application.

For older Symfony applications, use the historical branches:

- Symfony 5.4, 6.4, or 7.x: `1.7`
- Symfony 4: `1.6`
- Symfony 3.1: `1.5`
- Symfony 3.0: `1.4`
- Symfony 2.8 or 2.7: `1.3`
- Symfony 2.6 or older: `1.2`

Installation
------------

[](#installation)

Install the bundle with Composer:

```
composer require fp/jsformvalidator-bundle
```

If you are testing this revived branch before a tagged release, require the development branch explicitly:

```
composer require fp/jsformvalidator-bundle:"dev-master"
```

Register the bundle in `config/bundles.php`:

```
