PHPackages                             cookie/bloom - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. cookie/bloom

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

cookie/bloom
============

This is bloom filter sdk

0217PHP

Since Nov 18Pushed 6y ago1 watchersCompare

[ Source](https://github.com/cookie-cloud/bloom)[ Packagist](https://packagist.org/packages/cookie/bloom)[ RSS](/packages/cookie-bloom/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

一 、使用

```
require_once __DIR__ . '/autoload.php';

use Bloom\BloomFilterRedis;

$key = 'test';

$hash_func = ['BKDRHash', 'DJBHash', 'JSHash'];

$redis = new Redis();
$redis->connect('127.0.0.1', 6379);
$redis->auth('1234');

$bloom = new BloomFilterRedis($key, $hash_func, $redis);

$bloom->add('abc');
$bloom->add('bac');
$bloom->add('cba');

var_dump($bloom->exists('abc'));
var_dump($bloom->exists('bac'));
var_dump($bloom->exists('cab'));

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b4edcfbf5eed4969c8ae40d12243ad2c5bf975645f434cf4aae2e92b38b45d5?d=identicon)[zhoutao@hoge.cn](/maintainers/zhoutao@hoge.cn)

---

Top Contributors

[![cookie-cloud](https://avatars.githubusercontent.com/u/57882208?v=4)](https://github.com/cookie-cloud "cookie-cloud (4 commits)")

### Embed Badge

![Health badge](/badges/cookie-bloom/health.svg)

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

###  Alternatives

[mattiasgeniar/php-percentages

A clean interface to calculate percentages in PHP: changes between values, percentage increases, partial values, ...

201321.7k](/packages/mattiasgeniar-php-percentages)

PHPackages © 2026

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