承接 keiro/php-js-search 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

keiro/php-js-search

Composer 安装命令:

composer require keiro/php-js-search

包简介

A client or server side search engine for use on static pages.

README 文档

README

This is a client side search engine for use on static pages.

It uses a pre-compiled search index to add a fulltext search to static HTML pages such as github pages or offline API documentation. The index is built by a PHP script using a similar yet much more simplified and dump approach than the popular search engine Lucene.

To see how it looks like, check out the demo.

Installation

PHP 5.6 or higher is required to run the index generator.

Installation is recommended to be done via composer by adding the following to the require section in your composer.json:

{ "require" : 
  {
  "keiro/php-js-search": "~1.0"
  }
}

Alternatively run composer require "keiro/php-js-search".

Generate the index

Using the command line tool:

vendor/bin/generateindex <path-to-your-html-files>

js

This will generate a jssearch.index.js file that you have to include in the HTML header.

php

This will generate a search-engine-index.php in data folder. Example to generate php sqlite index :

vendor/bin/generateindex tests/ -l php -db

Usage

See example.html for a js implementation.
See example-php.html for a php implementation. Notice that the phpsearch.php file act as an endpoint. Feel free to integrate its logic in your own framework.

统计信息

  • 总下载量: 12
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 25
  • 开发语言: HTML

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-12-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固