weggla / sulu-dynamic-form-ajax-validation-bundle
A small bundle for Sulu projects to validate dynamic forms via ajax request
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:sulu-bundle
pkg:composer/weggla/sulu-dynamic-form-ajax-validation-bundle
Requires
- php: >= 8.2
- jackalope/jackalope-doctrine-dbal: ^1.10 || ^2.0
- sulu/form-bundle: ^2.5
- sulu/sulu: ~2.6.3
- symfony/form: ^5.4 || ^6.0 || ^7.0
- symfony/http-foundation: ^5.4 || ^6.0 || ^7.0
- symfony/routing: ^5.4 || ^6.0 || ^7.0
Requires (Dev)
- phpunit/phpunit: ^11.0
This package is auto-updated.
Last update: 2025-09-18 19:57:01 UTC
README
A small bundle for Sulu CMS projects to validate dynamic forms with an ajax call. This bundle provides a route to post your form data to. No form validation implementation for your website is bundled here.
Requirements
- Sulu 2.5.* || Sulu 2.6.*
- PHP >= 8.2
Installation
composer require weggla/sulu-dynamic-form-ajax-validation-bundle
Configuration
When not using symfony flex, enable the bundle in your bundles.php.
# config/bundles.php return [ ..., Sulu\Bundle\DynamicFormAjaxValidation\SuluDynamicFormAjaxValidationBundle::class => ['all' => true], ];
Import routes from the bundle.
# config/routes.yaml sulu_ajax_form_validation: resource: '../vendor/weggla/sulu-dynamic-form-ajax-validation-bundle/src/Controller' type: attribute prefix: /
Usage
POST your form data to route "validate_dynamic_form_ajax" (/ajax/form/validate) and receive the validation result.
License
This bundle is published under the MIT license and totally free to use. Use it wherever you like! Contributions are always welcome – whether it’s bug reports, incompatibilities, or anything else you stumble upon.