承接 netnak/tel 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

netnak/tel

最新稳定版本:1.0.3

Composer 安装命令:

composer require netnak/tel

包简介

A modifier that formats telephone numbers for use in links

README 文档

README

Tel is a Statamic addon that formats phone numbers for use in tel: links.

Features

This modifier will convert a nicely formatted phone number into a numbers-only string, allowing usage inside an href.

It will convert any + symbols into 00 (for international numbers), remove (0) if it exists, and then remove all remaining non-numerical characters.

This modifier will take a phone number and convert it into a numbers-only string so that it can be safely used inside a href.

  • Any + will be converted to 00 to help identify it as an international number.
  • Any (0) will be removed as these are purely for humans to understand the non-international number.
  • Any spaces, commas, hyphens, or any non-numerical numbers will be removed.

How to Install

You can search for this addon in the Tools > Addons section of the Statamic control panel and click install, or run the following command from your project root:

composer require netnak/tel

How to Use

Simply add this to the tag that contains your telephone number and apply the tel modifier to the tag in the href. For example:

---
phone_number: +44 (0) 151 123 4567
---

<a href=tel:"{{ phone_number | tel }}">{{ phone_number }}</a>

This will output:

<a href="tel:00441511234567">+44 (0) 151 123 4567</a>

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固