switon / search
Open-web search, page fetch, and curated site lookup for Switon Framework
v1.0.0
2026-08-22 14:34 UTC
Requires
- php: >=8.3
- ext-curl: *
- ext-dom: *
- ext-json: *
- ext-libxml: *
- ext-mbstring: *
- switon/ai: ^1.0
- switon/core: ^1.0
- switon/llm-html: ^1.0
- switon/tooling: ^1.0
- switon/yaml: ^1.0
Requires (Dev)
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^2.0
- switon/testing: ^1.0
Suggests
- switon/cdp: Provides the Switon\Core\WebFetcherInterface implementation these tools drive; without it a browser-backed site or engine cannot run.
Provides
None
Conflicts
None
Replaces
None
README
Open-web lookup and curated per-site search for agents. Four tools: web_search, web_fetch, site_search, and site_list.
Highlights
- Open web:
web_searchqueries Baidu, Google, Bing, and Zhihu, then dedupes. - Page fetch:
web_fetchreturns readable text, or the raw body. - Curated sites: one
site_searchwire over a registry of site files. - Catalog:
site_listreturns id, label, and whether a site paginates.
Installation
composer require switon/search
Quick Start
The package registers the four tools. An agent profile lists the ids it may call:
tools: - web_search - web_fetch - site_search - site_list
Docs: https://github.com/switon-php/search/blob/main/docs/README.md
License
MIT.