Download the PHP package polysource/search without Composer
On this page you can find all versions of the php package polysource/search. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download polysource/search
More information about polysource/search
Files in polysource/search
Package search
Short Description Polysource — global cross-resource search with Cmd+K palette UI.
License MIT
Homepage https://github.com/polysource/polysource
Informations about the package search
polysource/search
Cross-resource search palette (Cmd+K / Ctrl+K / "/") for Polysource — Linear / Notion-style fastest-path navigation.
Part of the Polysource monorepo. MIT-licensed.
What it ships
SearchResultVO +SearchProviderInterface(3 methods: id / label / search with deadline contract).SearchAggregator— fan-out across tagged providers with 3 contention layers:- per-provider limit
- total budget 250 ms
- try/catch isolation per provider
ResourceSearchProvider— default impl wrapping any Polysource Resource viaDataSource::search().SearchController— JSON endpointGET /admin/search?q=….SearchExtensionTwig (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. Future bridges (search-meilisearch, search-algolia, search-elasticsearch) extend via SearchProviderInterface.
Extend it
SearchProviderInterface is 3 methods (getId / getLabel / search). To plug Algolia, Elasticsearch, your custom service into the Cmd+K palette:
Done. The aggregator fan-outs across every tagged provider. See extensibility map.
Install
Register the bundle:
Documentation
- Search walkthrough
All versions of search with dependencies
polysource/core Version ^0.1 || ^0.5 || ^0.7 || ^0.9
polysource/symfony-bundle Version ^0.1 || ^0.5 || ^0.7 || ^0.9
symfony/config Version ^5.4 || ^6.0 || ^7.0 || ^8.0
symfony/dependency-injection Version ^5.4 || ^6.0 || ^7.0 || ^8.0
symfony/framework-bundle Version ^5.4 || ^6.0 || ^7.0 || ^8.0
symfony/http-kernel Version ^5.4 || ^6.0 || ^7.0 || ^8.0
symfony/translation Version ^5.4 || ^6.0 || ^7.0 || ^8.0
symfony/yaml Version ^5.4 || ^6.0 || ^7.0 || ^8.0
twig/twig Version ^3.0