PHPackages                             marko/docs-fts - 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. marko/docs-fts

ActiveMarko-module[Search &amp; Filtering](/categories/search)

marko/docs-fts
==============

FTS5 lexical search driver for Marko documentation

0.8.4(1mo ago)012MITPHPPHP ^8.5

Since May 29Pushed 1mo agoCompare

[ Source](https://github.com/marko-php/marko-docs-fts)[ Packagist](https://packagist.org/packages/marko/docs-fts)[ RSS](/packages/marko-docs-fts/feed)WikiDiscussions develop Synced 1w ago

READMEChangelogDependencies (10)Versions (7)Used By (0)

marko/docs-fts
==============

[](#markodocs-fts)

FTS5 lexical documentation search driver for Marko — fast, dependency-free full-text search over Marko docs.

Overview
--------

[](#overview)

`marko/docs-fts` implements `DocsSearchInterface` using SQLite's built-in FTS5 engine. It indexes the canonical documentation from `marko/docs-markdown` into a local SQLite database and answers queries with ranked keyword results. No external services, no model downloads — just SQLite. Use this driver when you want fast, lightweight search without semantic ranking.

Installation
------------

[](#installation)

```
composer require marko/docs-fts
```

Usage
-----

[](#usage)

Build the search index (run once, re-run after updating `marko/docs-markdown`):

```
marko docs-fts:build
```

The index is written to `.marko/docs-fts.sqlite`. Once built, search is available automatically through the `DocsSearchInterface` binding and via `marko/mcp`'s `search_docs` tool.

```
use Marko\Docs\Contract\DocsSearchInterface;

$results = $container->get(DocsSearchInterface::class)->search('rate limiting');
```

API Reference
-------------

[](#api-reference)

- `FtsSearch::search(string $query, int $limit = 20)` — BM25-ranked keyword search
- `marko docs-fts:build` — Build or rebuild the FTS5 index

Documentation
-------------

[](#documentation)

Full configuration and usage: [marko/docs-fts](https://marko.build/docs/packages/docs-fts/)

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance94

Actively maintained with recent releases

Popularity8

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

Every ~6 days

Total

5

Last Release

31d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/437029?v=4)[Mark Shust](/maintainers/markshust)[@markshust](https://github.com/markshust)

---

Top Contributors

[![markshust](https://avatars.githubusercontent.com/u/437029?v=4)](https://github.com/markshust "markshust (3 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/marko-docs-fts/health.svg)

```
[![Health](https://phpackages.com/badges/marko-docs-fts/health.svg)](https://phpackages.com/packages/marko-docs-fts)
```

PHPackages © 2026

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