Skip to content

boekkooi/JqueryValidationBundle

Repository files navigation

Boekkooi Jquery Validation Bundle

Build Status Code Coverage Scrutinizer Code Quality Total Downloads Latest Stable Version License Reference Status SensioLabsInsight

Welcome! Did you ever have the need to have some Javascript form validation within your symfony application? Well I did! So I made this little bundle to do it for me.

Do me a favor and give it a try and if you have any problem please create a issue or make a pull request.

Some of the things that the bundle supports:

  • Automatic constraint mapping
  • Form Collection (including prototype)
  • Validation groups
  • Data class constraints

Now let's go to the documentation and get started.

composer require boekkooi/jquery-validation-bundle dev-master

All the installation instructions are located in the documentation.

Demo

Yeah so .... nope there is no real demo but what you can do is the following:

git clone https://github.com/boekkooi/JqueryValidationBundle.git
cd JqueryValidationBundle

curl -sS https://getcomposer.org/installer | php
php composer.phar install

php -S 0.0.0.0:8000 -t tests/Functional/web/

Now you can see the functional test pages on http://127.0.0.1:8000/, these should give you a good idea of what is possible.

License

This bundle is under the MIT license.

About

This bundle is created and maintained by Warnar Boekkooi. Special thanks go to the Symfony community and Jörn Zaefferer.

Alternatives

If for some reason you don't like this bundle and you are looking for a alternative you may take a look at FpJsFormValidatorBundle or UberFrontendValidationBundle. It would also be appreciate if you create a issue telling why you don't like this bundle and what could be added/changed to make it more to your liking.