tinned-software/php-libphono 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

tinned-software/php-libphono

Composer 安装命令:

composer require tinned-software/php-libphono

包简介

libphono is a php library which allows phone numbers to be converted from local or national format into an international number which conforms to the E.164 standard.

README 文档

README

Pronounced "/ lib fo no /", libphono is a PHP library used for E.164 phone number normalization. It is intended to be a small, fast way to work with telephone numbers.

What is libphono?

libphono a library which allows phone numbers to be converted from local or national format into an international number which conforms to the E.164 standard. This is achieved using a data set which contains information about published dial plans. libphono allows an input number to be converted into a variety of different formats, e.g. local, national or E.164 international.

The library is designed to be simple to use, small and fast. The name libphono is derived from "lib phone number" shortening each part of the name: lib(rary)-pho(ne)-no(number).

In contrast to other implementations, logic for country specific dial plan specifics is encapsulated in the class itself and does not need to be handled by the developer. This brings us to...

What is libphono not?

libphono is not intended to be a replacement for formatting libraries such as Google's "libphonenumber". The goal of the project is not to provide specific geographic or carrier information about numbers or number formatting.

Specific information is not supported, such as:

  • DOES NOT: provide specific information regarding geographic / carrier information about a number,
  • DOES NOT: provide information about whether the number is a fixed line or mobile device,
  • DOES NOT: convert numbers into formatted strings, e.g. "+1 (614) 544 5874",
  • DOES NOT: provide plausability check for numbers - syntax check for specific countries, areas, number length, etc...

I've downloaded it and it isn't working!

Please see the Requirements section in this document. You can also see the README-quickstart.md document for additional help getting started quickly.

How do I use libphono?

Please see the class documentation in the phpdoc subdirectory for a description of how to use the class. There is also a quickstart file (README-quickstart.md) included in the repository to help you get started.

What countries / dial plans does libphono cover?

All countries which have publicly available information related to their dial plans. 235 countries are currently included.

Information missing?

Create an issue in the github repository, we will update as soon as possible!

Requirements

  1. PHP corresponding to the version listed in this project's composer.json,
  2. PHP modules for MySQL or SQLite3 (to provide access to data),
  3. and composer require in your composer.json
{
  "require": {
    "tinned-software/php-libphono": "~2.0.0"
  }
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2017-10-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固