Download the PHP package pangongzi/phone without Composer

On this page you can find all versions of the php package pangongzi/phone. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package phone

手机号码归属地信息库、手机号归属地查询

项目描述

dat 文件信息,由于新号码段出现,原作者的数据没有覆盖到,自己着手手动更新了数据。
为了配套使用,写了一个php composer 包(已发布),方便使用。

如果你只要dat文件,在目录 src/data/phone.dat

安装

使用 Composer 安装:

使用方法 初始化 首先,需要引入自动加载文件并实例化 PhoneLocation 类:

查询手机号码归属地 使用 find 方法查询手机号码的归属地信息:

返回结果示例(完整)

出处和说明

基于github开源库
作者: https://github.com/ls0f/phone
记录条数:499527 (updated:2023年12月)

文件格式

结构 原作者保持一致

  1. 头部为8个字节,版本号为4个字节,第一个索引的偏移为4个字节;
  2. 记录区 中每条记录的格式为"<省份>|<城市>|<邮编>|<长途区号>\0"。 每条记录以\0结束;
  3. 索引区 中每条记录的格式为"<手机号前七位><记录区的偏移><卡类型>",每个索引的长度为9个字节;

类型 运营商

字段 原作者保持一致

安全保证

语言实现

python:
https://github.com/ls0f/phone

php:
https://github.com/pangongzi/phone
https://github.com/shitoudev/phone-location
https://github.com/iwantofun/php_phone

php ext:
https://github.com/jonnywang/phone

Java:
https://github.com/fengjiajie/phone-number-geo
https://github.com/EeeMt/phone-number-geo

Node:
https://github.com/conzi/phone

C++:
https://github.com/yanxijian/phonedata

C#:
https://github.com/sndnvaps/Phonedata

Rust:
https://github.com/vincascm/phonedata

Kotlin:
https://github.com/bytebeats/phone-geo

Ruby:
https://github.com/forwaard/phonedata

Go:
https://github.com/xluohome/phonedata

欢迎补充

交流

email | 邮件 [email protected]

wechat | 微信
wechat.jpg


All versions of phone with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package pangongzi/phone contains the following files

Loading the files please wait ....