log1x/acf-phone-number
Composer 安装命令:
composer require log1x/acf-phone-number
包简介
A real ACF phone number field.
README 文档
README
A real ACF phone number field powered by libphonenumber and intl-tel-input
Requirements
Installation
Bedrock
Install via Composer:
$ composer require log1x/acf-phone-number
Manual
Download the release .zip and install into wp-content/plugins.
Usage
Pretty straight forward usage. You can optionally set a default country.
Calling the field will return an arrayable object containing everything you need about your number:
^ array:10 [ "carrier" => "" "country" => "United States" "e164" => "+14058675309" "international" => "+1 405-867-5309" "location" => "Oklahoma" "national" => "(405) 867-5309" "rfc3966" => "tel:+1-405-867-5309" "timezone" => array:1 [ 0 => "America/Chicago" ] "uri" => "tel:+14058675309" ]
ACF Composer
If you are on Sage 10 and using my ACF Composer package:
$field ->addField('my_number_field', 'phone_number') ->setConfig('placeholder', '+1 555-555-5555') ->setConfig('default_country', 'us');
Bug Reports
If you discover a bug in ACF Phone Number, please open an issue.
Contributing
Contributing whether it be through PRs, reporting an issue, or suggesting an idea is encouraged and appreciated.
License
ACF Phone Number is provided under the MIT License.
log1x/acf-phone-number 适用场景与选型建议
log1x/acf-phone-number 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 76.52k 次下载、GitHub Stars 达 119, 最近一次更新时间为 2020 年 08 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「wordpress」 「phone-number」 「acf」 「acf-field」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 log1x/acf-phone-number 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 log1x/acf-phone-number 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 log1x/acf-phone-number 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Simple set of helper functions for ACF Fluent auto-loaded with Composer using generic function names.
Drag and drop file upload for ACF-Fields.
Type-safe internationalization value objects and validation rules for Laravel applications including countries, currencies, locales, phone numbers, postal codes, and addresses
Phone number library
Register advanced custom fields with object oriented PHP
Validate a phone number
统计信息
- 总下载量: 76.52k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 119
- 点击次数: 17
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-08-04