makinacorpus/iban-bundle
最新稳定版本:1.0.5
Composer 安装命令:
composer require makinacorpus/iban-bundle
包简介
International Bank Account Number form type
README 文档
README
Simply gives you a nice widget for IBAN numbers, please note that it's based on the default bootstrap form theme (any of the normal or horizontal one).
Installation
Install the package:
composer require makinacorpus/iban-bundle
Register the associated form theme in your app/config.yml file:
twig: debug: "%kernel.debug%" strict_variables: false form_themes: # ... - "IbanBundle:Form:fields.html.twig"
Usage
The widget has no options. Just add it to your form:
$this->createFormBuilder() ->add('iban', IbanType::class, [ 'label' => "IBAN", 'required' => true, 'constraints' => [ new Assert\Iban(), ], ])
Please use the Symfony\Component\Validator\Constraints\Iban class for
validation, it does respect the ISO 7064 standard.
统计信息
- 总下载量: 12.68k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2016-10-25