Skip to content

canciolabs/cpf-symfony-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPF Symfony Validator

A custom Symfony Validator that validates CPF.

Requirements

  • PHP >= 7.4

Installation

composer require cancio-labs/cpf-symfony-validator

How to use it

Add the CpfConstraint in your entity...

use CancioLabs\Validator\Cpf\CpfConstraint;

#[CpfConstraint]
private ?Cpf $cpf = null;

or add it to a constraint list:

use CancioLabs\Validator\Cpf\CpfConstraint;    

$formBuilder->add('cpf', TextType::class, [
    'constraints' => [
        new CpfConstraint(),
    ],
]);

About

A custom Symfony Validator that validates CPF.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy