sumeetghimire/fastsearch
Composer 安装命令:
composer require sumeetghimire/fastsearch
包简介
FastSearch is a powerful Laravel package that accelerates search operations across multiple database models. It allows for flexible keyword searching with support for exact and partial matches, caching, and easy integration with Laravel applications.
README 文档
README
FastSearch is a powerful Laravel package that accelerates search operations across multiple database models. It allows for flexible keyword searching with support for exact and partial matches, caching, and easy integration with Laravel applications.
Features
- Multi-model Search: Search across multiple models with the same keyword.
- Exact & Partial Matching: Supports
LIKEqueries and exact matches. - Caching: Built-in caching to improve performance.
- Easy Integration: Quick setup and simple to use in Laravel applications.
Installation
To install the FastSearch package, run the following command:
composer require sumeetghimire/fastsearch
Example How to Use
use SumeetGhimire\FastSearch\FastSearch;
public function search(Request $request)
{
$keyword = $request->input('keyword', 'd');
$userColumn = $request->input('user_column', 'name');
$portfolioColumn = $request->input('portfolio_column', 'title');
$returnColumnOnly = $request->input('return_column_only', false);
// Measure the execution time
// Search in the User model with pagination
$results = $this->search
->addModel(User::class, 'name', true)
->setKeyword('t')
->setMatchType('like')
->setPaginationEnabled(true)
->setPagination(5, 1)
->search();
return response()->json([
'status' => 'success',
'results' => $results,
]);
}
License
The FastSearch package is open-source and licensed under the MIT License.
Credits
Author: Sumeet Ghimire Email: sumeetghimire2526@gmail.comsumeetghimire/fastsearch 适用场景与选型建议
sumeetghimire/fastsearch 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 03 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「search」 「laravel」 「search engine」 「fast search」 「query optimization」 「database search」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 sumeetghimire/fastsearch 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 sumeetghimire/fastsearch 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 sumeetghimire/fastsearch 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Laravel package to retrieve data from Google Search Console
Indexed Search Autocomplete - Extends the TYPO3 Core Extension Indexed_Search searchform with an autocomplete feature.
A SilverStripe module to optimise the Meta, crawling, indexing, and sharing of your website content (forked from Cyber-Duck/Silverstripe-SEO)
Abstraction Layer to index and search entities
A Processor for Markup written in PHP. Allows extraction of Markup into a data structure, orchestrated nested manipulation of said structure, and output as (optimized) Markup.
Allow KoolReport to use twig template engine to render view
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-03-08