PHPackages                             jesseobrien/reach - 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. jesseobrien/reach

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

jesseobrien/reach
=================

PHP Redis search library.

6151PHP

Since Feb 21Pushed 11y ago1 watchersCompare

[ Source](https://github.com/JesseObrien/reach)[ Packagist](https://packagist.org/packages/jesseobrien/reach)[ RSS](/packages/jesseobrien-reach/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (2)Used By (0)

reach
=====

[](#reach)

[![Build Status](https://camo.githubusercontent.com/15dc1d8dcc9fa1ffc73125d88cb2c6e2444d2bd43b13f7645546c670e6562b21/68747470733a2f2f6170692e7472617669732d63692e6f72672f4a657373654f627269656e2f72656163682e706e67)](https://travis-ci.org/JesseObrien/reach)

Redis search layer in PHP.

### Install

[](#install)

Add `"jesseobrien/reach": "dev-master"` to the require section of your composer.json.

### Usage

[](#usage)

#### Insert A Book

[](#insert-a-book)

```
    # Ensure your object has the searchable variables set.
    class Book {
      protected $searchableAttributes = ['name', 'author'];
      protected $searchableNamespace = 'books';
    }

    // Create a new book and save it to the database.
    $b = new Book();
    $b->name = 'The Adventures of Sherlock Holmes';
    $b->author = 'Arthur Conan Doyle';
    $b->save();

    // Now that our object has an id from save(), insert it into Reach
    $searchIndex = new Reach();
    $searchIndex->add($b);
```

#### Find Books

[](#find-books)

```
    // Search in books for 'sherlock holmes'
    // Reach will return the ids of books it finds matching 'sherlock' and 'holmes'
    $ids = $searchIndex->find('books', 'sherlock holmes');

    $results = [];
    foreach ($ids as $id)
    {
      $result[] = Book::find($id);
    }
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.2% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/865481?v=4)[Jesse O'Brien](/maintainers/JesseObrien)[@jesseobrien](https://github.com/jesseobrien)

---

Top Contributors

[![jesseobrien](https://avatars.githubusercontent.com/u/865481?v=4)](https://github.com/jesseobrien "jesseobrien (20 commits)")[![dmamills](https://avatars.githubusercontent.com/u/2381136?v=4)](https://github.com/dmamills "dmamills (1 commits)")

### Embed Badge

![Health badge](/badges/jesseobrien-reach/health.svg)

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

###  Alternatives

[awesome-nova/dependent-filter

Dependent filters for Laravel Nova

26190.2k](/packages/awesome-nova-dependent-filter)[algolia/php-dom-parser

A simple tool to turn DOM into Algolia search friendly record objects.

181.8k](/packages/algolia-php-dom-parser)

PHPackages © 2026

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