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

v0.0.1-alpha 2025-09-18 19:01 UTC

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.

License: MIT CircleCI

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.