omgfinally/symfony-validation-constraints

Finally a couple more of custom validation constraints for Symfony.

Installs: 341

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:symfony-bundle

pkg:composer/omgfinally/symfony-validation-constraints

dev-main 2025-12-25 15:01 UTC

This package is auto-updated.

Last update: 2025-12-25 15:01:46 UTC


README

Finally, a couple more of custom validation constraints for Symfony.

The constraints the package provides:

  • EachElement - checks if every element in the array provided is correctly validated by the other passed Constraints.
  • OneOfContainerParameters - checks if the value provided is contained inside an array in parameters configuration.

Installation

composer require omgfinally/symfony-validation-constraints

You might also need to update bundles.php:

// config/bundles.php

<?php

return [
    ...
    OmgFinally\SymfonyValidationConstraints\SymfonyValidationConstraintsBundle::class => ['all' => true],
];

Usage

For usage, see specific files in docs folder: