Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/taogogo/mpl-php-extension
mpl is a php extension for getting a mobile phone number location. mpl是一个通过手机号码获取号码归属地的php扩展。手机号码归属地查询工具。
https://github.com/taogogo/mpl-php-extension
Last synced: 3 months ago
JSON representation
mpl is a php extension for getting a mobile phone number location. mpl是一个通过手机号码获取号码归属地的php扩展。手机号码归属地查询工具。
- Host: GitHub
- URL: https://github.com/taogogo/mpl-php-extension
- Owner: taogogo
- Created: 2013-12-13T10:15:26.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2021-03-10T05:06:42.000Z (over 3 years ago)
- Last Synced: 2024-07-09T00:57:03.702Z (4 months ago)
- Language: C
- Homepage:
- Size: 1.26 MB
- Stars: 11
- Watchers: 6
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-php-extensions - mpl-php-extension - 手机查找归属地 (其他)
README
mpl
=====
## introducempl is a php extension for getting mobile phone number location.
mpl是一个通过手机号码获取号码归属地的php扩展。
现在是简单的顺序查找,同样的逻辑,查询速度比php快5~9倍。
将来有空了我会用map或其他数据结构来优化。## install:
```shell
phpize
./configure
make
make install
echo "extension=mpl.so" >> /etc/php.ini
echo "mpl_data_path=/var/www/phone.data" >> /etc/php.ini
echo "mpl_use_hashmap=0" >> /etc/php.ini```
## eg:
```php```
## output:
```php
Array
(
[province] => 北京
[city] => 北京
[type] => 移动神州行卡
[area_codepost_code] => 010
[post_code] => 100000)
```## contact
e-mail: love(a)taogogo.info