Download the PHP package czdb/searcher without Composer

On this page you can find all versions of the php package czdb/searcher. 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 searcher

CZDB Searcher

CZDB Searcher 是一个用于高效 IP 地理位置查询的 PHP 库,它使用紧凑的数据库格式和二叉树搜索算法,提供快速准确的 IP 查找功能。

特点

性能

因为php本生的特性,在每次请求解释执行完后会释放所有内存资源,这意味着每次请求都要重新载入数据文件,显然这会带来性能瓶颈。如果您对性能有比较高的要求,可以考虑java或者c版本的查询程序。

安装

在项目目录下运行以下命令来安装 CZDB Searcher:

如果找不到包,可能是因为你没有使用composer 2.x版本,可以使用以下命令来安装composer 2.x版本:

使用方法

以下是一个快速开始的示例:

请将 "/path/to/your/database.czdb""YourEncryptionKey" 替换为您项目中实际的数据库路径和加密密钥。

配置

DbSearcher 构造函数接受以下参数:

数据库文件和密钥可以从 www.cz88.net 获取。

模式选择

贡献

欢迎贡献!请随时提交拉取请求或开启问题来改进库或添加新功能。

许可证

该项目在 Apache-2.0 许可下授权 - 详情见 LICENSE 文件。


All versions of searcher with dependencies

PHP Build Version
Package Version
Requires rybakit/msgpack Version ^0.9.1
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 czdb/searcher contains the following files

Loading the files please wait ....