wenstudioasia/zinc-php
最新稳定版本:0.1.0
Composer 安装命令:
composer require wenstudioasia/zinc-php
包简介
zinc search engine PHP SDK
关键字:
README 文档
README
PHP SDK for zincsearch.
This package was first developed for private usage.
Development environment:
- OS : Arch Linux 64bit Kernal v6.3.6
- PHP: v7.2
- Composer: v2.5.8
- ZincSearch server: v0.4.7
- Editor: VSCode
Install
composer require wenstudioasia/zinc-php
Usage
@see /tests || @see source files in /src || @see official document
A piece of quite simple code:
use Wenstudio\ZincPhp\Zinc; // client $client = new Zinc('http://localhost:4080', 'admin', '123456'); $client->index_create('member'); $client->doc_create('member',['name'=>'Joe', 'age'=>20, 'role'=>'solider']); $client->doc_create_with_id('address', 201, ['location'=>'somewhere']); $client->search('test', 'Joe');
Test
# install zincsearch 0.4.7 (latest today) # go to https://github.com/zincsearch/zincsearch/releases # start zincsearch cd /path/to/zincsearch mkdir data ZINC_FIRST_ADMIN_USER=admin ZINC_FIRST_ADMIN_PASSWORD=aa123456 ./zincsearch cd /path/to/zinc-php # install dependencies # should pre-install needed php extensions like php-tokenizer php-dom(unittest) composer update ln -s vendor/phpunit/phpunit/phpunit phpunit # make some modifications to Test*.php ./phpunit tests/TestApi.php
NOTICE
All interfaces are not stable, most likely would be changed in the future.
统计信息
- 总下载量: 771
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-09-08