PHPackages                             apy/jsfv-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. apy/jsfv-bundle

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

apy/jsfv-bundle
===============

Symfony2 Javascript Form Validation Bundle with localisation support

v2.0.1(12y ago)92770.5k22[1 issues](https://github.com/Abhoryo/APYJsFormValidationBundle/issues)[1 PRs](https://github.com/Abhoryo/APYJsFormValidationBundle/pulls)MITPHPPHP &gt;=5.3.3CI failing

Since Aug 4Pushed 9y ago11 watchersCompare

[ Source](https://github.com/Abhoryo/APYJsFormValidationBundle)[ Packagist](https://packagist.org/packages/apy/jsfv-bundle)[ Docs](https://github.com/Abhoryo/APYJsFormValidationBundle)[ RSS](/packages/apy-jsfv-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (12)Versions (4)Used By (0)

\#This Bundle is no longer maintained.
Over the years, the structure of Symfony forms has evolved and this bundle has tried to follow its evolution without changing its own structure. However, this old structure is not adapted to new versions of Symfony.
Instead of starting from scratch and generate code similar to another Bundle, I'd rather advise you to use this other Bundle.

[fp/jsformvalidator-bundle](https://github.com/formapro/JsFormValidatorBundle)

Changes to use this Bundle are really fast to apply.

It was a real pleasure to offer this kind of bundle for early versions of Symfony.

---

---

---

\##Getting Started With JsFormValidationBundle

**Version**: 2.1 [![Build Status](https://camo.githubusercontent.com/11d11db30015fc9bf41fa4b9073c9d33cfb82d439e25c2a87273f49ffac9523c/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f4162686f72796f2f4150594a73466f726d56616c69646174696f6e42756e646c652e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/Abhoryo/APYJsFormValidationBundle)

**Compatibility**: Symfony &gt;=2.1, &lt;2.4.

This bundle generate automatically a script to perform validations of a form in javascript.

It use the same constraints defined with annotations in your entity or your document.

This bundle is `g11n` compatible.(i18n + L10n)

Prerequisite
------------

[](#prerequisite)

- [BazingaExposeTranslationBundle](https://github.com/willdurand/BazingaExposeTranslationBundle) is mandatory (&lt;2.0). This bundle compute and translate messages in javascript.
- A JavaScript framework is recommended. [jQuery](http://jquery.com/), [Mootools](http://mootools.net), [Prototype](http://prototypejs.org), [Yui](http://yuilibrary.com/), [Dojo](http://dojotoolkit.org), [Zepto](http://zeptojs.com) and [ExtJs](http://sencha.com/products/extjs/) are already supported. (Create an issue if you want other)

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

[](#installation)

Please follow the steps given [here](https://github.com/Abhoryo/APYJsFormValidationBundle/blob/master/Resources/doc/installation.md) to install this bundle.

Usage
-----

[](#usage)

This bundle is really easy to use. All you need is to call a twig function in your template.

`{{ JSFV(form) }}`

Template of a simple form:

```

{{ JSFV(form) }}

	{{ form_widget(form) }}

```

See a full simple example [here](https://github.com/Abhoryo/APYJsFormValidationBundle/blob/master/Resources/doc/simple_example.md).

The following documents are available:

- [Installation](https://github.com/Abhoryo/APYJsFormValidationBundle/blob/master/Resources/doc/installation.md)
- [Simple Example](https://github.com/Abhoryo/APYJsFormValidationBundle/blob/master/Resources/doc/simple_example.md)
- [Custom Constraints](https://github.com/Abhoryo/APYJsFormValidationBundle/blob/master/Resources/doc/add_your_constraints.md)
- [Twig Function](https://github.com/Abhoryo/APYJsFormValidationBundle/blob/master/Resources/doc/twig_function.md)
- [Configuration](https://github.com/Abhoryo/APYJsFormValidationBundle/blob/master/Resources/doc/configuration.md)
- [Assets warmer](https://github.com/Abhoryo/APYJsFormValidationBundle/blob/master/Resources/doc/assets_warmer.md)
- [Events](https://github.com/Abhoryo/APYJsFormValidationBundle/blob/master/Resources/doc/events.md)
- [Overriding the bundle](https://github.com/Abhoryo/APYJsFormValidationBundle/blob/master/Resources/doc/overriding_the_bundle.md)
- [Constraints warning](https://github.com/Abhoryo/APYJsFormValidationBundle/blob/master/Resources/doc/constraints_warning.md)
- [Reporting a Bug](https://github.com/Abhoryo/APYJsFormValidationBundle/blob/master/Resources/doc/reporting_issue.md)

TODO
----

[](#todo)

- Script all possible constraints
- Manage php, yml and xml defined constraints

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity48

Moderate usage in the ecosystem

Community22

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor3

3 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~285 days

Total

3

Last Release

4464d ago

PHP version history (2 changes)v2.0PHP &gt;=5.3.2

v2.0.1PHP &gt;=5.3.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/83f590d942f2565d0281f4a4ce50fa934935132eac3e4696415e2f90f0701c6b?d=identicon)[Abhoryo](/maintainers/Abhoryo)

---

Top Contributors

[![bmurashin](https://avatars.githubusercontent.com/u/818407?v=4)](https://github.com/bmurashin "bmurashin (6 commits)")[![lsmith77](https://avatars.githubusercontent.com/u/300279?v=4)](https://github.com/lsmith77 "lsmith77 (3 commits)")[![mrtorrent](https://avatars.githubusercontent.com/u/60119?v=4)](https://github.com/mrtorrent "mrtorrent (3 commits)")[![66Ton99](https://avatars.githubusercontent.com/u/383739?v=4)](https://github.com/66Ton99 "66Ton99 (3 commits)")[![rutkai](https://avatars.githubusercontent.com/u/1587720?v=4)](https://github.com/rutkai "rutkai (1 commits)")[![benji07](https://avatars.githubusercontent.com/u/166890?v=4)](https://github.com/benji07 "benji07 (1 commits)")[![damienalexandre](https://avatars.githubusercontent.com/u/225704?v=4)](https://github.com/damienalexandre "damienalexandre (1 commits)")[![guillaumepotier](https://avatars.githubusercontent.com/u/496234?v=4)](https://github.com/guillaumepotier "guillaumepotier (1 commits)")

---

Tags

symfonyvalidationi18nl10njavascriptformg11n

### Embed Badge

![Health badge](/badges/apy-jsfv-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/apy-jsfv-bundle/health.svg)](https://phpackages.com/packages/apy-jsfv-bundle)
```

###  Alternatives

[fp/jsformvalidator-bundle

Javascript validation for sf\[2|3|4\] forms.

132418.8k1](/packages/fp-jsformvalidator-bundle)[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[karser/karser-recaptcha3-bundle

Google ReCAPTCHA v3 for Symfony

1862.4M7](/packages/karser-karser-recaptcha3-bundle)[barbieswimcrew/zip-code-validator

Constraint class for international zipcode validation

772.3M](/packages/barbieswimcrew-zip-code-validator)[isometriks/spam-bundle

Provides spam protection for Symfony forms

46200.6k1](/packages/isometriks-spam-bundle)[boekkooi/jquery-validation-bundle

Jquery form validation bundle for symfony 2

2773.9k1](/packages/boekkooi-jquery-validation-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
