PHPackages                             polysource/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. polysource/search

ActiveSymfony-bundle[Search &amp; Filtering](/categories/search)

polysource/search
=================

Polysource — global cross-resource search with Cmd+K palette UI.

v0.9.0(2mo ago)04MITPHP &gt;=8.1

Since May 8Compare

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

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

polysource/search
=================

[](#polysourcesearch)

> Cross-resource search palette (Cmd+K / Ctrl+K / "/") for Polysource — Linear / Notion-style fastest-path navigation.

Part of the [Polysource](https://github.com/polysource/polysource) monorepo. MIT-licensed.

What it ships
-------------

[](#what-it-ships)

- **`SearchResult`** VO + **`SearchProviderInterface`** (3 methods: id / label / search with deadline contract).
- **`SearchAggregator`** — fan-out across tagged providers with 3 contention layers:
    1. per-provider limit
    2. total budget 250 ms
    3. try/catch isolation per provider
- **`ResourceSearchProvider`** — default impl wrapping any Polysource Resource via `DataSource::search()`.
- **`SearchController`** — JSON endpoint `GET /admin/search?q=…`.
- **`SearchExtension`** Twig (`polysource_search_palette()`).
- Stimulus **`cmdk_controller.js`** — Cmd+K / Ctrl+K / "/" hooks, debounce 150 ms, arrow-keys + Enter nav, Esc close, results grouped per resource.
- Accessible overlay template `_palette.html.twig`.

See [ADR-023](../../docs/adr/0023-global-search-cmdk.md). Future bridges (`search-meilisearch`, `search-algolia`, `search-elasticsearch`) extend via `SearchProviderInterface`.

Extend it
---------

[](#extend-it)

`SearchProviderInterface` is **3 methods** (`getId` / `getLabel` / `search`). To plug Algolia, Elasticsearch, your custom service into the Cmd+K palette:

```
#[AutoconfigureTag('polysource.search.provider')]
final class AlgoliaSearchProvider implements SearchProviderInterface
{
    public function getId(): string { return 'algolia:products'; }
    public function getLabel(): string { return 'Products (Algolia)'; }
    public function search(string $query, int $limit, float $deadline): array
    {
        // Respect the deadline; the aggregator enforces a 250ms global budget.
    }
}
```

Done. The aggregator fan-outs across every tagged provider. See [extensibility map](../../docs/user/extensibility.md#2-plug-into-the-cmdk-search-palette).

Install
-------

[](#install)

```
composer require polysource/search
```

Register the bundle:

```
return [
    Polysource\Search\PolysourceSearchBundle::class => ['all' => true],
];
```

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

[](#documentation)

- [Search walkthrough](../../docs/user/search/)

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance86

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

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

Total

25

Last Release

68d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/41d53ab82016651b0a4a9ef71644a54f934d8bf54ccbc59fc0183f994213ef38?d=identicon)[samaym](/maintainers/samaym)

---

Tags

searchsymfonycommand-palettecmd-kpolysource

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M400](/packages/easycorp-easyadmin-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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