codemonauts/craft-iban-field
Composer 安装命令:
composer require codemonauts/craft-iban-field
包简介
Craft CMS plugin to store, validate and format IBAN codes.
README 文档
README
A field for storing, validating and formatting IBAN codes.
Background
"The International Bank Account Number (IBAN) is an internationally agreed system of identifying bank accounts across national borders to facilitate the communication and processing of cross border transactions with a reduced risk of transcription errors." (Wikipedia).
This plugin adds a field type to store and validate IBAN codes. It provides a Twig extension to format IBANs in different formats.
Requirements
- Craft CMS >= 4.0.0
Installation
Open your terminal and go to your Craft project:
cd /path/to/project
composer require codemonauts/craft-iban-field
./craft install/plugin iban
Usage
After installation, the control panel can be used to create IBAN fields.
Twig Filter
You can use the |iban filter to format an IBAN code in different ways. The default is print:
{{ entry.myIban|iban }}
{# Output: "DE89 3704 0044 0532 0130 00" #}
{{ entry.myIban|iban('print') }}
{# Output: "DE89 3704 0044 0532 0130 00" #}
{{ entry.myIban|iban('electronic') }}
{# Output: "DE89370400440532013000" #}
{{ entry.myIban|iban('anonymized') }}
{# Output: "XXXXXXXXXXXXXXXXXX3000" #}
With ❤ by codemonauts
统计信息
- 总下载量: 17
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-03-31
