PHPackages                             repat/spatie-crawler-redis - 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. [Caching](/categories/caching)
4. /
5. repat/spatie-crawler-redis

ActiveLibrary[Caching](/categories/caching)

repat/spatie-crawler-redis
==========================

Redis CrawlQueue for spatie/crawler

0.2.1(4y ago)510.0k2[2 PRs](https://github.com/repat/spatie-crawler-redis/pulls)MITPHPPHP &gt;=7.1

Since Sep 5Pushed 3y ago1 watchersCompare

[ Source](https://github.com/repat/spatie-crawler-redis)[ Packagist](https://packagist.org/packages/repat/spatie-crawler-redis)[ Docs](https://repat.de)[ RSS](/packages/repat-spatie-crawler-redis/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (4)Dependencies (4)Versions (7)Used By (0)

spatie-crawler-redis
====================

[](#spatie-crawler-redis)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e468d409a60aa8fb8fb9bdf2040e8da4bc842dcf60fc8abd08c09648ec4deeee/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72657061742f7370617469652d637261776c65722d72656469732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/repat/spatie-crawler-redis)[![Total Downloads](https://camo.githubusercontent.com/8c0211cb66f7418f06bd0be7c02760f4bae93a612a9b03010c6efee63fe4d694/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72657061742f7370617469652d637261776c65722d72656469732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/repat/spatie-crawler-redis)

**spatie-crawler-redis** is an alternative CrawlerQueue implementing the `Spatie\Crawler\CrawlQueue\CrawlQueue` interface using Redis Hashes.

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

[](#installation)

`$ composer require repat/spatie-crawler-redis`

Example
-------

[](#example)

Create a `Predis\Client` beforehand if you need options, such as selecting a database. If you don't pass a client, a new one without options will be used. Predis assumes `127.0.0.1`, `6379` and `0` as default host, port and database. You can also pass a custom prefix, otherwise `uniqid()` will be used.

```
use Repat\CrawlQueue\RedisCrawlQueue;

// see https://github.com/nrk/predis for options
$options = [
    'database' => 7,
];

$prefix = uniqid() . ':'; // same as passing no prefix

$redisClient = new \Predis\Client($options);

// ...
->setCrawlQueue(new RedisCrawlQueue($redisClient, $prefix))

// uses new \Predis\Client without options
->setCrawlQueue(new RedisCrawlQueue())
```

TODO
----

[](#todo)

- `phpredis` support

Testing
-------

[](#testing)

> Thanks spatie for the tests. These are the instructions:

To run the tests you'll have to start the included node based server first in a separate terminal window.

```
cd tests/server
npm install
./start_server.sh
```

With the server running, you can start testing.

```
vendor/bin/phpunit
```

License
-------

[](#license)

- MIT, see [LICENSE](https://github.com/repat/spatie-crawler-redis/blob/master/LICENSE)

Version
-------

[](#version)

- Version 0.2.1

Contact
-------

[](#contact)

### repat

[](#repat)

- Homepage: [repat.de](https://repat.de)
- e-mail:
- Twitter: [@repat123](https://twitter.com/repat123 "repat123 on twitter")

[![Flattr this git repo](https://camo.githubusercontent.com/7e3f46a36526479d701ef7f90a0f8c3ac2fbab3087446e2a9fceed75cd1ab802/687474703a2f2f6170692e666c617474722e636f6d2f627574746f6e2f666c617474722d62616467652d6c617267652e706e67)](https://flattr.com/submit/auto?user_id=repat&url=https://github.com/repat/spatie-crawler-redis&title=spatie-crawler-redis&language=&tags=github&category=software)

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.9% 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 ~284 days

Total

4

Last Release

1639d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/405dab243007488e7e7851422e5864a9312aee36058d60f1e6d623232c4d3131?d=identicon)[repat](/maintainers/repat)

---

Top Contributors

[![repat](https://avatars.githubusercontent.com/u/516807?v=4)](https://github.com/repat "repat (8 commits)")[![johnroyer](https://avatars.githubusercontent.com/u/114491?v=4)](https://github.com/johnroyer "johnroyer (1 commits)")

---

Tags

spatierediscrawlerprediscrawlqueue

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/repat-spatie-crawler-redis/health.svg)

```
[![Health](https://phpackages.com/badges/repat-spatie-crawler-redis/health.svg)](https://phpackages.com/packages/repat-spatie-crawler-redis)
```

###  Alternatives

[predis/predis-async

Asynchronous version of Predis

370354.5k](/packages/predis-predis-async)[predis/service-provider

Predis service provider for the Silex microframework

68548.8k1](/packages/predis-service-provider)[jamescauwelier/psredis

Sentinel client for the popular php redis client

78399.4k5](/packages/jamescauwelier-psredis)[cache/predis-adapter

A PSR-6 cache implementation using Redis (Predis). This implementation supports tags

242.6M13](/packages/cache-predis-adapter)[contributte/redis

Redis client integration into Nette framework

191.7M2](/packages/contributte-redis)[maykonn/codeigniter-predis

The CodeIgniter Redis package

1310.9k](/packages/maykonn-codeigniter-predis)

PHPackages © 2026

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