omgfinally/symfony-validation-constraints

Finally a couple more of custom validation constraints for Symfony.

dev-main 2025-01-26 16:17 UTC

This package is auto-updated.

Last update: 2025-08-26 17:49:45 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: