PHPackages                             jenky/roller - 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. jenky/roller

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

jenky/roller
============

Pick an option from a given pool with a given set of probabilities.

1.0.0(4mo ago)00MITPHPPHP ^8.2CI passing

Since Dec 26Pushed 4mo agoCompare

[ Source](https://github.com/jenky/roller)[ Packagist](https://packagist.org/packages/jenky/roller)[ Docs](https://github.com/jenky/roller)[ RSS](/packages/jenky-roller/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Roller
======

[](#roller)

[![Latest Version on Packagist](https://camo.githubusercontent.com/925818b9ffdb8e912b918a9062853dfea4e0656717ec576314374eeda00b71c6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a656e6b792f726f6c6c65722e7376673f6c6f676f3d7061636b6167697374267374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/jenky/roller)[![Github Actions](https://camo.githubusercontent.com/798a9682424952dc00fb37a5cea314efb2f2dbe16b0bd0af8111fa70e32aba2b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a656e6b792f726f6c6c65722f74657374696e672e796d6c3f6272616e63683d6d61696e266c6162656c3d616374696f6e73266c6f676f3d676974687562267374796c653d666f722d7468652d6261646765)](https://github.com/jenky/jenky/roller)[![Codecov](https://camo.githubusercontent.com/1d098aa22b7c21773f68341952490c9f04e87551b80d03b5546a615961500d97/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6a656e6b792f726f6c6c65723f6c6f676f3d636f6465636f76267374796c653d666f722d7468652d6261646765)](https://codecov.io/gh/jenky/roller)[![Total Downloads](https://camo.githubusercontent.com/64406844a3905b31c7f8053e5e8eee500e5c6438f48c3ca637719120895ef81d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a656e6b792f726f6c6c65722e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/jenky/roller)[![Software License](https://camo.githubusercontent.com/9897f4467850972a38c7db9a4d38280b8fcdac0ada00e9c8c0a72ecfa8551653/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666f722d7468652d6261646765)](LICENSE.md)

Zero dependencies lib that allows you to pick an option from a given pool with a given set of probabilities.

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

[](#installation)

You can install the package via composer:

```
composer require jenky/roller
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Lynh](https://github.com/jenky)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance74

Regular maintenance activity

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

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

Unknown

Total

1

Last Release

143d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/783e915bb411d566e8f1035f197842db5e870a2a995b3943bcbe5db2f9abf09b?d=identicon)[Milano](/maintainers/Milano)

---

Top Contributors

[![jenky](https://avatars.githubusercontent.com/u/1808758?v=4)](https://github.com/jenky "jenky (5 commits)")

---

Tags

jenkyroller

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jenky-roller/health.svg)

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

###  Alternatives

[fzaninotto/streamer

Object-oriented API to PHP streams

26417.3k1](/packages/fzaninotto-streamer)

PHPackages © 2026

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