IsoCodesValidator:https的Symfony验证程序包装器

时间:2021-05-07 16:18:57
【文件属性】:
文件名称:IsoCodesValidator:https的Symfony验证程序包装器
文件大小:23KB
文件格式:ZIP
更新时间:2021-05-07 16:18:57
PHP IsoCodesValidator 项目的Symfony验证程序包装器。 安装 首先,您需要通过composer要求此库: $ composer require sllh/iso-codes-validator 此后,您可以按原样使用它。 如果在Symfony项目上使用它,则应阅读以下说明以实现更好的集成。 作为Symfony捆绑包 如果您的项目未使用Symfony Full Stack ,则必须添加以下依赖项: $ composer require symfony/dependency-injection symfony/http-kernel symfony/finder 笔译 如果您希望在此捆绑包中使用默认的验证者消息翻译,则必须确保在配置中启用了翻译器。 # app/config/config.yml framework : translator : ~
【文件预览】:
IsoCodesValidator-master
----src()
--------ConstraintInterface.php(424B)
--------Exception()
--------AbstractIsoCodesConstraintValidator.php(2KB)
--------translations()
--------AbstractConstraint.php(237B)
--------Constraints()
--------Bridge()
--------AbstractIsoCodesGenericConstraint.php(588B)
----LICENSE(1KB)
----composer.json(2KB)
----appveyor.yml(1KB)

网友评论