PHPackages                             radowoj/searcher - 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. radowoj/searcher

AbandonedArchivedLibrary[Search &amp; Filtering](/categories/search)

radowoj/searcher
================

Unified search API with drivers for Bing and Google

v0.4.0(9y ago)0167MITPHPPHP ^7.0

Since Apr 17Pushed 9y ago1 watchersCompare

[ Source](https://github.com/radowoj/searcher)[ Packagist](https://packagist.org/packages/radowoj/searcher)[ RSS](/packages/radowoj-searcher/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

searcher
========

[](#searcher)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/dfe20d4afe7329386909f1f36ca51cebe404a563559ef063b6c0a73ad65a8a2d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7261646f776f6a2f73656172636865722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/radowoj/searcher/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/5f99789601882b45f92b7d68746a9b0446418ceadcec419536a49c9318fbf568/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7261646f776f6a2f73656172636865722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/radowoj/searcher/?branch=master)[![Build Status](https://camo.githubusercontent.com/ff07ce28f481a3526015601f579ffde37c594d7e89f9a3b024ce4e815555bf24/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7261646f776f6a2f73656172636865722f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/radowoj/searcher/build-status/master)

Unified search API for Google, Bing and maybe others in the future. Utilizes Guzzle for http requests.

Goal
----

[](#goal)

- To use Google / Bing / possibly other Web Search Api with the same interface, regardless of which one is being used under the hood.

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

[](#requirements)

- PHP &gt;= 7.0
- guzzlehttp/guzzle

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

[](#installation)

```
composer require radowoj/searcher
```

Usage
-----

[](#usage)

```
use GuzzleHttp\Client as GuzzleClient;
use Radowoj\Searcher\SearchProvider\Bing;
use Radowoj\Searcher\SearchProvider\Google;
use Radowoj\Searcher\Searcher;

$client = new GuzzleClient();

//
// If you want to use Google
//
$searchProvider = new Google(
    $client,
    'your-google-api-key',
    'your-custom-search-cx-value-set-in-google-account-panel'
);

//
// Or if you want to use Bing
//
$searchProvider = new Bing(
    $client,
    'your-bing-api-key'
);

//
// Rest of the necessary code is the same regardless of search provider used
//

$searcher = new Searcher($searchProvider);

$results = $searcher->query('"nyan cat"')
    ->limit(10)
    ->offset(0)
    ->find();

//Array access
var_dump(($results[5])->toArray());

//Traversable
foreach($results as $result){
    var_dump($result->toArray());
}

//Countable
var_dump(count($results));

//...and total-result-countable ;)
var_dump($results->totalCount());
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Total

4

Last Release

3358d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26042435?v=4)[Radosław Wojtyczka](/maintainers/radowoj)[@radowoj](https://github.com/radowoj)

---

Top Contributors

[![radowoj](https://avatars.githubusercontent.com/u/26042435?v=4)](https://github.com/radowoj "radowoj (27 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/radowoj-searcher/health.svg)

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k34](/packages/neuron-core-neuron-ai)[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[algolia/algoliasearch-magento-2

Algolia Search &amp; Discovery extension for Magento 2

1881.9M18](/packages/algolia-algoliasearch-magento-2)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)

PHPackages © 2026

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