Download the PHP package larryli/monipdb without Composer
On this page you can find all versions of the php package larryli/monipdb. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download larryli/monipdb
More information about larryli/monipdb
Files in larryli/monipdb
Download larryli/monipdb
More information about larryli/monipdb
Files in larryli/monipdb
Vendor larryli
Package monipdb
Short Description 使用 PHP 数组式访问 ipip.net 数据库。
License MIT
Homepage https://github.com/larryli/monipdb
Package monipdb
Short Description 使用 PHP 数组式访问 ipip.net 数据库。
License MIT
Homepage https://github.com/larryli/monipdb
Please rate this library. Is it a good library?
Informations about the package monipdb
Monipdb
使用 PHP 数组式访问 ipip.net 数据库。
使用方法
需要 PHP 5.4 以上版本,无其他依赖。
默认的 \larryli\monipdb\Monipdb
将会把数据文件一次性读入内存,
\larryli\monipdb\CachedMonipdb
在上述基础上使用内存缓存部分数据,以利于一次请求中多次重复查询;
\larryli\monipdb\DirectMonipdb
则不缓存内存数据,每个查询都会直接从数据文件中读取数据,
\larryli\monipdb\CachedDirectMonipdb
在上述基础上使用内存缓存重复查询的数据。
具体请参考 example 文件。
免费下载数据库
下载地址: https://www.ipip.net/free_download/
自定义
Ip 数据库主要业务逻辑均在 \larryli\monipdb\MonipdbTrait
中实现,可以直接在相关自定义类中直接使用。
比如在 Yii2 框架中使用组件包装。
1.0 版本
对于基本使用,可以使用:
以获得更好的执行性能。
All versions of monipdb with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4
The package larryli/monipdb contains the following files
Loading the files please wait ....