studodev / form-util-bundle
A collection of utilities for forms in Symfony
Package info
github.com/studodev/form-util-bundle
Type:symfony-bundle
pkg:composer/studodev/form-util-bundle
v1.1.3
2026-04-15 14:36 UTC
Requires
- php: >=8.2
- symfony/form: ^6.4 || ^7.4 || ^8.0
- symfony/mime: ^6.4 || ^7.4 || ^8.0
- symfony/validator: ^6.4 || ^7.4 || ^8.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.54
- symfony/test-pack: ^1.1
- symfony/var-dumper: 6.4 || ^7.4 || ^8.0
README
A collection of utilities for forms in Symfony
Features
- Disable client side validation
- Compute accept attribute on
FileTypebased on constraints in form or data class - Constraint to block disposable email domains
Installation
composer require studodev/form-util-bundle
Configuration
Create the configuration file at path config/packages/form_util.yaml
Exemple
form_util: disable_client_validation: true enable_constraint_based_accept_attribute: true
Usage
Block disposable email domains
class User { // .... #[Assert\Email] #[NotDisposableEmail] private string $email; // .... }