定制 wenstudioasia/zinc-php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 6
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-09-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固