定制 parse-holy-land-phone/parse-phone 二次开发

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

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

parse-holy-land-phone/parse-phone

最新稳定版本:2.0.0

Composer 安装命令:

composer require parse-holy-land-phone/parse-phone

包简介

Parse israeli/Palestinian phone numbers

README 文档

README

Parse Holy land (Israel/Palestine) phone numbers

Latest Version on Packagist GitHub Tests Action Status Total Downloads

Installation

composer require parse-holy-land-phone/parse-phone

usage

// via new instance
$number = new ParsePhone('025121234');

// via static method
$number = ParsePhone::create('025121234');

$number->isValid();

Available methods

  • isValid Checks if phone number is a valid Israeli/Palestinian phone number.
  • isIsraeli Checks if phone number is Israeli.
  • isPalestinian Checks if phone number is Palestinian.
  • isLandLine Checks if phone number is LandLine.
  • isSpecial Checks if phone number is Special (*1234).
  • isMobile Checks if phone number is Mobile.
  • isBusiness Checks if phone number is Business (1700, 1800, etc).
  • isTollFree Checks if phone number is TollFree (1800, etc).
  • isPremium Checks if phone number is Premium (1900, etc).
  • isKosher Checks if phone number is Kosher (phone supports only calls).
  • isErotic Checks if phone number is Erotic (1919).
  • isSmsable Checks if phone number can receive an sms (text) .
  • getInternational Returns phone number transformed to international format 025231234 > 97225231234.
  • getLocal Returns phone number transformed to local format 97225231234 > 025231234.
  • getPhoneNumber Returns the parsed phone number.

all is functions have a reverse function isNot.

Community contributors

  • Biny Yawitz

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-10-25