Download the PHP package jarir-ahmed/uncensored-search without Composer
On this page you can find all versions of the php package jarir-ahmed/uncensored-search. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jarir-ahmed/uncensored-search
More information about jarir-ahmed/uncensored-search
Files in jarir-ahmed/uncensored-search
Package uncensored-search
Short Description Framework-agnostic meta web-search client for PHP. Aggregates multiple search APIs (Tavily, Serper, Firecrawl, SearchApi, ScrapingBee, Scavio) with automatic failover and an unfiltered (safe-search off) mode.
License MIT
Informations about the package uncensored-search
jarir-ahmed/uncensored-search
A framework-agnostic meta web-search client for PHP. Point it at several search-API keys and it gives you one clean interface with automatic failover — if one provider is down, rate-limited, or returns nothing, the next one covers. Results are unfiltered by default (safe-search off); you opt back into filtering when you want it.
Supported providers: Serper, Tavily, SearchApi.io, Scavio, Firecrawl, ScrapingBee. All six have free tiers.
This is web search (the open internet via search APIs). For searching your own indexed data (Elasticsearch, Meilisearch, …) see
jarir-ahmed/search.
Install
Requires PHP 7.4+ and ext-curl.
Quick start
Loading keys
Both naming styles are accepted in arrays and files: provider names (serper)
or env-var names (SERPER_API_KEY).
Two search modes
The Query object
Safe-search is off by default. Everything is fluent and immutable.
Working with results
search() never throws on provider failure — failures land in errors() and an
all-failed run simply returns an empty set you can inspect.
Choosing / ordering providers
Default failover order (best free quota / quality first):
serper → tavily → searchapi → scavio → firecrawl → scrapingbee.
Command-line tool
Provider reference
| Provider | Free tier | Safe-search switch | Notes |
|---|---|---|---|
| Serper | 2,500/mo | yes | Google SERP JSON; default first choice |
| Tavily | 1,000/mo | no | AI-tuned snippets, relevance score |
| SearchApi | free credits | yes | Google + many engines |
| Scavio | 250/mo | no | Google/Amazon/YouTube/Reddit |
| Firecrawl | 1,000/mo | no | AI search; data.web results |
| ScrapingBee | 1,000/mo | partial | Google SERP; key in query string |
Get keys from each provider's site, drop them in a KEY=value file, and never
commit it — .gitignore already excludes *.env / *keys.txt.
Extending
Implement Contracts\ProviderInterface (or extend Providers\AbstractProvider
for the shared mapping/decoding helpers) and pass your provider into the
UncensoredSearch constructor. The failover engine and aggregator work against
the interface, so no core changes are needed.
Testing
Tests use a fake HTTP client fed with real captured provider JSON, so no network or API quota is touched. 31 tests, 86 assertions, all green.
License
MIT © Jarir Ahmed
All versions of uncensored-search with dependencies
ext-json Version *