boekkooi / jquery-validation-bundle
Jquery form validation bundle for symfony 2
Installs: 73 354
Dependents: 1
Suggesters: 0
Security: 0
Stars: 27
Watchers: 8
Forks: 26
Open Issues: 8
Type:symfony-bundle
Requires
- php: >=5.5
- doctrine/collections: ~1.0
- symfony/dependency-injection: ~2.3|~3.0
- symfony/form: ~2.3, >=2.3.5|~3.0
- symfony/framework-bundle: ~2.3|~3.0
- symfony/twig-bridge: ~2.3|~3.0
- symfony/twig-bundle: ~2.3|~3.0
- symfony/validator: ~2.3|~3.0
- twig/twig: ~1.14, >=1.14.2
Requires (Dev)
- behat/behat: ~3.0
- behat/mink: ~1.6
- behat/mink-extension: ~2.0
- behat/mink-selenium2-driver: ~1.1
- behat/symfony2-extension: ~2.0
- phpunit/phpunit: ~4.7@stable
- symfony/browser-kit: ~2.3|~3.0
- symfony/css-selector: ~2.3|~3.0
- symfony/dom-crawler: ~2.3|~3.0
- symfony/finder: ~2.3|~3.0
- symfony/phpunit-bridge: ~2.7@stable
- symfony/yaml: ~2.3|~3.0
README
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.
Install and configure
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.