PHPackages                             ekumanov/flarum-ext-post-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. ekumanov/flarum-ext-post-search

ActiveFlarum-extension[Search &amp; Filtering](/categories/search)

ekumanov/flarum-ext-post-search
===============================

Search and filter posts within a discussion by keyword or author, with search result highlighting.

v1.0.1(1mo ago)0166↓50%1MITTypeScriptPHP ^8.2

Since Apr 18Pushed 1mo agoCompare

[ Source](https://github.com/ekumanov/flarum-ext-post-search)[ Packagist](https://packagist.org/packages/ekumanov/flarum-ext-post-search)[ RSS](/packages/ekumanov-flarum-ext-post-search/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

Post Search for Flarum 2.0
==========================

[](#post-search-for-flarum-20)

Search and filter posts within a discussion by keyword or author, with matched terms highlighted in the post stream.

Features
--------

[](#features)

- **Find in discussion** — A toolbar search field that filters the current discussion's post stream to posts matching a keyword. Non-matching posts are replaced with a "N non-matching posts hidden" gap indicator so navigation stays anchored to the full discussion.
- **Filter by author** — Multi-user chip selector next to the search field. Pick one or more participants to restrict the stream to their posts. Suggestions are pre-loaded with the discussion's actual participants, so the dropdown works for regular users without `viewUserList` permission.
- **Search highlighting** — Matched query terms are wrapped in `` tags within rendered post content while a filter is active.
- **Sticky toolbar** — Pin button keeps the filter toolbar open across discussions; close button clears filters and hides it.
- **Multiple access points** — Configurable entry buttons in the discussion controls dropdown, the sidebar navigation, and per-post controls.
- **Author quick-filter** — Optional "Show only replies from this author" item in each post's controls menu.
- **Discussion-starter shortcut** — Optional clickable "Discussion starter" label next to each post by the original poster; clicking it filters the stream to that user.
- **Permission-aware** — Respects post visibility: soft-deleted / hidden posts and posts in restricted discussions are filtered server-side via Flarum's `whereVisibleTo` scope.
- **Fully localizable** — All UI strings use locale keys with ICU plural support.

Requirements
------------

[](#requirements)

- **Flarum 2.0** (not compatible with Flarum 1.x)
- **PHP 8.2+**

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

[](#installation)

```
composer require ekumanov/flarum-ext-post-search
php flarum cache:clear
```

Then enable the extension in the admin panel under **Extensions &gt; Post Search**.

Configuration
-------------

[](#configuration)

### Admin Settings

[](#admin-settings)

SettingDefaultDescriptionAccess via discussion dropdownDisabledShow a "Search discussion" button in the discussion controls dropdownAccess via discussion side navigationDisabledShow a "Search discussion" button in the discussion sidebarQuick filter for post authorDisabledAdd a "Show only replies from this author" shortcut to each post's controlsDiscussion-starter shortcutDisabledShow a clickable "Discussion starter" label next to posts by the original poster; clicking it filters the stream to that userAll four toggles default to off so the extension is opt-in per forum.

Credits
-------

[](#credits)

This extension is a port and consolidation of two of [Clark Winkelmann](https://discuss.flarum.org/u/clarkwinkelmann)'s Flarum 1.x extensions into a single Flarum 2.0 package:

- [clarkwinkelmann/flarum-ext-post-stream-search](https://discuss.flarum.org/d/24941) — the per-discussion search toolbar and author filter
- [clarkwinkelmann/flarum-ext-advanced-search-highlight](https://discuss.flarum.org/d/24942) — the search-term highlighting inside posts

The "Discussion starter" shortcut is a small original feature added on top — a clickable label, not a styled badge.

The relationship-select component used by the author filter is inlined from [flamarkt/backoffice](https://github.com/flamarkt/backoffice), so there is no runtime dependency on that package.

Porting and merging was done with [Claude Code](https://claude.ai/code).

Updating
--------

[](#updating)

```
composer update ekumanov/flarum-ext-post-search
php flarum cache:clear
```

Links
-----

[](#links)

- [Packagist](https://packagist.org/packages/ekumanov/flarum-ext-post-search)
- [Report Issues](https://github.com/ekumanov/flarum-ext-post-search/issues)

License
-------

[](#license)

MIT

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance91

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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 ~7 days

Total

2

Last Release

44d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a23c4539c1c2283960743eb8b92e2c56fb2c5f33a7b44bd03a3d07b882fd67ed?d=identicon)[ekumanov](/maintainers/ekumanov)

---

Top Contributors

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

---

Tags

searchhighlightextensionflarumpost-stream

### Embed Badge

![Health badge](/badges/ekumanov-flarum-ext-post-search/health.svg)

```
[![Health](https://phpackages.com/badges/ekumanov-flarum-ext-post-search/health.svg)](https://phpackages.com/packages/ekumanov-flarum-ext-post-search)
```

###  Alternatives

[flarum-lang/russian

Russian language pack for Flarum.

12127.5k](/packages/flarum-lang-russian)[blomstra/search

Replaces Flarum search with one powered by an elastic search server.

125.1k](/packages/blomstra-search)[flarum-lang/french

French language pack to localize the Flarum forum software plus its official and third-party extensions.

1936.5k](/packages/flarum-lang-french)[ganuonglachanh/sonic

Allows to search by sonic

201.9k](/packages/ganuonglachanh-sonic)

PHPackages © 2026

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