PHPackages                             lsys/search - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Search &amp; Filtering](/categories/search)
4. /
5. lsys/search

ActiveLibrary[Search &amp; Filtering](/categories/search)

lsys/search
===========

lsys module search

0.0.1(5y ago)023Apache-2.0PHP

Since Jun 28Pushed 5y agoCompare

[ Source](https://github.com/php-lsys/search)[ Packagist](https://packagist.org/packages/lsys/search)[ RSS](/packages/lsys-search/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

\#搜索接口

> 统一的搜索引擎封装,关于搜索PHP搜索引擎资料可参考:目的在于在开发业务需求时不要关系底层搜索的实现,方便在业务变更时快速切换底层搜索引擎而无需修改代码

示例代码:

```
//关于 product 参考:dome/Search/Product.php
$ps= new Product();
$res=$ps->query(
		Query::factory("ptitle")->set_page(1)
		->set_highlight(
			Highlight::factory(array("title"))
		)
	);

var_dump($res->get_total());
var_dump($res->get_time());

foreach ($res as $v){
	var_dump($v->pk());
	var_dump($v->get_highlight("title"));
}

```

```
//配合Lorm使用,可将搜索结果直接转换为ORM,方便使用
//需先加载 composer require lsys/orm
//更多关于ORM的操作参见 lsys/orm
//转换为ORM结果
$res = new ORMReuslt($res, new Active("product"));
foreach ($res as $v){
	var_dump($v->get_entity()->pk());
	var_dump($v->get_entity()->asArray());
	var_dump($v->get_highlight("title"));
}

```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2186d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f1652fec3beae86de90c6615dd28be4729251e1b2bb08f1cd18e8193e6c4e48?d=identicon)[lsys](/maintainers/lsys)

---

Top Contributors

[![shanliu](https://avatars.githubusercontent.com/u/2927231?v=4)](https://github.com/shanliu "shanliu (12 commits)")

### Embed Badge

![Health badge](/badges/lsys-search/health.svg)

```
[![Health](https://phpackages.com/badges/lsys-search/health.svg)](https://phpackages.com/packages/lsys-search)
```

###  Alternatives

[ircmaxell/filterus

A library for filtering variables in PHP

44613.4k6](/packages/ircmaxell-filterus)[awesome-nova/dependent-filter

Dependent filters for Laravel Nova

26190.2k](/packages/awesome-nova-dependent-filter)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
