PHPackages                             jelle-s/bitmaskgenerator - 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. jelle-s/bitmaskgenerator

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

jelle-s/bitmaskgenerator
========================

Generates all possible bitmasks with a minimum amount of positives (1's) and a certain length.

1.0.0(9y ago)02291GPL-3.0+PHP

Since Dec 13Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Jelle-S/bitmaskgenerator)[ Packagist](https://packagist.org/packages/jelle-s/bitmaskgenerator)[ RSS](/packages/jelle-s-bitmaskgenerator/feed)WikiDiscussions develop Synced today

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

BitMaskGenerator
================

[](#bitmaskgenerator)

[![Build Status](https://camo.githubusercontent.com/2a9a42b7a4909a60ccbfdb299d97396601ebea19535334ad9915313bfcd3dc5d/68747470733a2f2f7472617669732d63692e6f72672f4a656c6c652d532f6269746d61736b67656e657261746f722e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/Jelle-S/bitmaskgenerator) [![Code Climate](https://camo.githubusercontent.com/f9e2fbd0af07887a7ae435b8c763d1ac071af36de3ffebd764e3945787c6d777/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f4a656c6c652d532f6269746d61736b67656e657261746f722f6261646765732f6770612e737667)](https://codeclimate.com/github/Jelle-S/bitmaskgenerator) [![Test Coverage](https://camo.githubusercontent.com/78fe102940001a8467fc7a7882ebe145a0c892b53b03299aa0345c10993bf53a/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f4a656c6c652d532f6269746d61736b67656e657261746f722f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/Jelle-S/bitmaskgenerator/coverage) [![Issue Count](https://camo.githubusercontent.com/d3e39f8cc2e12b8e7c8dc9e9e92a6e64f12e9f3c8af51baea18b19ee210e969f/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f4a656c6c652d532f6269746d61736b67656e657261746f722f6261646765732f69737375655f636f756e742e737667)](https://codeclimate.com/github/Jelle-S/bitmaskgenerator)

Usage:

```
use Jelle_S\Util\BitMask\BitMaskGenerator;
$length = 5;
$minPositives = 2;
// BitMaskGenerator that generates bitmasks with a length of 5 and at least two
// positives (1's).
$generator = new BitMaskGenerator($length, $minPositives);
while ($mask = $generator->getNextMask()) {
  print $mask . "\n";
}
```

Output:

```
00011
00101
00110
01001
01010
01100
10001
10010
10100
11000
00111
01011
01101
01110
10011
10101
10110
11001
11010
11100
01111
10111
11011
11101
11110
11111

```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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

3486d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fd0af1f056fd3baa2df55c0c745ade4d0f8af99505f717bf0ad48d7b615a2153?d=identicon)[Jelle-S](/maintainers/Jelle-S)

---

Top Contributors

[![Jelle-S](https://avatars.githubusercontent.com/u/1828542?v=4)](https://github.com/Jelle-S "Jelle-S (10 commits)")

### Embed Badge

![Health badge](/badges/jelle-s-bitmaskgenerator/health.svg)

```
[![Health](https://phpackages.com/badges/jelle-s-bitmaskgenerator/health.svg)](https://phpackages.com/packages/jelle-s-bitmaskgenerator)
```

###  Alternatives

[joshrainwater/active-users

A Laravel Package for easily retrieving a list of active users and guests that are currently online.

9019.9k](/packages/joshrainwater-active-users)[gearsdigital/enhanced-toolbar-link-dialog

Enhanced Toolbar Link Dialog is a Kirby 3 plugin that extends the default link dialog with a search functionality. This makes it possible, to create links to \_existing\_ or \_external\_ pages.

627.3k](/packages/gearsdigital-enhanced-toolbar-link-dialog)

PHPackages © 2026

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