Registry / other / symfony-validator

symfony-validator

JSON →
library8.0.5phppackagistunverified

Provides tools to validate values.

composer require symfony/validator
INSTALL
IMPORT
SIG · SYMFONY-VALIDATOR
S
symfony-validator
otherphpv8.0.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Validation
✓ use Symfony\Component\Validator\Validation;

Validates a value using NotBlank and Length constraints.

use Symfony\Component\Validator\Validation; use Symfony\Component\Validator\Constraints as Assert; $validator = Validation::createValidator(); $violations = $validator->validate('value', [ new Assert\NotBlank(), new Assert\Length(['min' => 3]), ]);
Debug
Known issues
gotchaValidation groups and cascading can be complex
fix
Read documentation on validation groups and cascading validation.
affects: *
Upgrade
Version history
8.0.5latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
20
Bingbot
1
Resources
symfony-validator — pip install symfony-validator · libregistry