---
date: 2020-11-12
id: d69cb1c0-fc5d-406e-beab-e82ee12dc603
title: Symfony Constraints
---

# Attributes

As of [Symfony 5.2](20201117095953-symfony_5_2), validation constraints
can be defined as
[attributes](20201117112727-define_constraints_as_attributes).

# Constraints

-   [Compromised Password
    Constraint](20201112134752-compromised_password_constraint)
-   [Hostname Constraint](20201116132411-hostname_constraint)
-   [JSON Constraint](20201112125637-symfony_json_constraint)
-   [NotBlank Constraint](20201112130710-notblank_constraint)
-   [Timezone Constraint](20201112134545-timezone_constraint)
-   [Type Constraint](20201113172517-type_constraint)
-   [Unique Constraint](20201112132331-unique_constraint)
-   [ULID Constraint](20201117104332-ulid_constraint)

## Compound constraints

-   [AtLeastOneOf Constraint](20201116134435-atleastoneof_constraint)
-   [Compound Constraint](20201116124210-compound_constraint)
-   [Sequentially Constraint](20201116124823-sequentially_constraint)

## Expressions

-   [ExpressionLanguage
    Constraint](20201109150640-expressionlanguage_constraint)
-   [ExpressionLanguageSyntax
    Constraint](20201116135523-expressionlanguagesyntax_constraint)

## Number constraints

-   [DivisibleBy
    Constraint](20201111103048-symfony_divisibleby_constraint)
-   [Number Constraints](20201112140917-number_constraints)

## Valid constraints

-   [Groups support for Valid
    constraint](20201109145724-groups_support_for_valid_constraint)

## Financial constraints

-   [Bic Constraint](20201112122929-bic_constraint)
-   [CardScheme Constraint](20201112123704-cardscheme_constraint)
