SkillAgentSearch skills...

Phphinder

A PHP powered lightweight search engine

Install / Use

/learn @eliasfernandez/Phphinder
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

PHPhinder

A lightweight and modular search engine built in PHP.

License
Packagist


Table of Contents


About

PHPhinder is an open-source, lightweight, and modular search engine designed for PHP applications. It provides powerful search capabilities with a focus on simplicity, speed, and extensibility.


Features

  • Full-text search for indexed documents.
  • Support for advanced queries, including prefix queries, AND/OR/NOT combinations, and field-specific searches.
  • Lightweight and efficient, with minimal dependencies.
  • Easy integration with Symfony or other PHP frameworks.
  • Highly extensible, allowing customization of query parsers and indexers.
  • Fuzzy search. If no exact matches are found typo tolerance search is triggered

Installation

Install PHPhinder via Composer:

composer require eliasfernandez/phphinder

Usage

Here’s a simple example to demonstrate PHPhinder in action:

use PHPhinder\Index\JsonStorage;
use PHPhinder\SearchEngine;

$storage = new JsonStorage('var');
$engine = new SearchEngine($storage);

$engine->addDocument(['_id' => 1, 'title' => 'Hi', 'text' => 'Hello world!']);
$engine->flush();
$results = $engine->search('Hello');
print_r($results[1]->getDocument());

Configuration

PHPhinder offers several configuration options, including custom analyzers, tokenizers, and more. Refer to the manual for detailed instructions.


Contributing

Contributions are welcome! Please review the contribution guidelines before submitting pull requests.


License

PHPhinder is open-source software licensed under the MIT license.

View on GitHub
GitHub Stars19
CategoryDevelopment
Updated10mo ago
Forks0

Languages

PHP

Security Score

82/100

Audited on May 14, 2025

No findings