定制 drblitz/phone 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

drblitz/phone

Composer 安装命令:

composer require drblitz/phone

包简介

Adds phone number functionality to TYPO3. Crate f.link.phone helper with the definition ITU-T INTERNATIONAL,NATIONAL,E123

README 文档

README

What is it?

Adds phone number functionality to TYPO3 based on the Google's libphonenumber.

INTERNATIONAL and NATIONAL formats are consistent with the definition in ITU-T Recommendation E123. For example, the number of the DR BLITZ WEBLAB office will be written as "+48 12 333 44 01" in INTERNATIONAL format, and as "12 333 44 01" in NATIONAL format. E164 format is as per INTERNATIONAL format but with no formatting applied, e.g. "+48123334401". RFC3966 is as per INTERNATIONAL format, but with all spaces and other separating symbols replaced with a hyphen, and with any phone number extension appended with ";ext=". It also will have a prefix of "tel:" added, e.g. "tel:+48-12-333-44-01".

Installation

It is recommended to use composer to install the library.

$ composer require drblitz/phone

EXAMPLE

EXAMPLE 1 - NATIONAL format

{wb:link.phone(class:'contact-item__link',phoneNumber:data.tx_projectcore_phone, region:'pl', format: 2)}

return

<a class="contact-item__link" href="tel:+48-12-333-44-01">12 333 44 01</a>

EXAMPLE 2 - INTERNATIONAL format

{wb:link.phone(class:'contact-item__link',phoneNumber:data.tx_projectcore_phone, region:'pl', format: 1)}

return

<a class="contact-item__link" href="tel:+48-12-333-44-01">+48 12 333 44 01</a>

EXAMPLE 3 - E164 format

{wb:link.phone(class:'contact-item__link',phoneNumber:data.tx_projectcore_phone, region:'pl', format: 0)}

return

<a class="contact-item__link" href="tel:+48-12-333-44-01">+48123334401</a>

EXAMPLE 4 - Using ViewHelper with CE Textpic.

{wb:format.phone(value: data.bodytext, region:'de', format: 2)->f:format.html(parseFuncTSPath: 'lib.parseFunc')

统计信息

  • 总下载量: 287
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2024-01-13