cancio-labs/cpf-symfony-validator
最新稳定版本:1.0.0
Composer 安装命令:
composer require cancio-labs/cpf-symfony-validator
包简介
A custom Symfony Validator that validates CPF.
关键字:
README 文档
README
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(),
],
]);
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2024-07-25