PHPackages                             storyous/bucket-determinator - 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. storyous/bucket-determinator

ActiveLibrary

storyous/bucket-determinator
============================

0.1.3(7y ago)076.8k↑23.1%PHP

Since Dec 12Pushed 7y ago15 watchersCompare

[ Source](https://github.com/Storyous/BucketDeterminator)[ Packagist](https://packagist.org/packages/storyous/bucket-determinator)[ RSS](/packages/storyous-bucket-determinator/feed)WikiDiscussions master Synced 1mo ago

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

[![](https://camo.githubusercontent.com/39d19f81d591bf9bce6a5f6dc72a6978a56a282672f087daf560ee1a0736ad72/687474703a2f2f6f6936382e74696e797069632e636f6d2f6666636d34782e6a7067)](https://camo.githubusercontent.com/39d19f81d591bf9bce6a5f6dc72a6978a56a282672f087daf560ee1a0736ad72/687474703a2f2f6f6936382e74696e797069632e636f6d2f6666636d34782e6a7067)

BucketDeterminator
==================

[](#bucketdeterminator)

This is small helper library to determine bucket allegiance based on MongoDB/ObjectId.

Usage
-----

[](#usage)

```
    use BucketDeterminator\BucketDeterminator;

    $bucketDeterminator = new BucketDeterminator(32);
    echo $bucketDeterminator->determine('5576a1a886157828c11bac4f'); // 15
```

```
    const bucketDeterminator = require('../src/BucketDeterminator');
    const determinator = bucketDeterminator();
    return determinator.determine('5576a1a886157828c11bac4f'); //15
```

Run tests
---------

[](#run-tests)

```
php vendor/bin/tester --coverage ./coverage.html --coverage-src ./src -c /path/to/php-ini/php.ini tests

```

```
npm run test
```

License
-------

[](#license)

MIT License

Copyright (c) 2018 storyous.com s.r.o.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.1% 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 ~0 days

Total

4

Last Release

2715d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/36e49c19bfda7563644a243704a22cfb3a4acef9e6639f9921f6975895f35074?d=identicon)[thevojacek](/maintainers/thevojacek)

---

Top Contributors

[![thevojacek](https://avatars.githubusercontent.com/u/10649611?v=4)](https://github.com/thevojacek "thevojacek (8 commits)")[![cernytomas](https://avatars.githubusercontent.com/u/15247143?v=4)](https://github.com/cernytomas "cernytomas (3 commits)")[![mkoubik](https://avatars.githubusercontent.com/u/136466?v=4)](https://github.com/mkoubik "mkoubik (1 commits)")[![sofranek](https://avatars.githubusercontent.com/u/12952927?v=4)](https://github.com/sofranek "sofranek (1 commits)")[![stanogurnik](https://avatars.githubusercontent.com/u/2771618?v=4)](https://github.com/stanogurnik "stanogurnik (1 commits)")

### Embed Badge

![Health badge](/badges/storyous-bucket-determinator/health.svg)

```
[![Health](https://phpackages.com/badges/storyous-bucket-determinator/health.svg)](https://phpackages.com/packages/storyous-bucket-determinator)
```

PHPackages © 2026

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