PHPackages                             sdo/bitmask - 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. sdo/bitmask

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

sdo/bitmask
===========

Bitmask handling

v1.0(8y ago)025.7k↓48.9%3LGPL-3.0PHP

Since Aug 31Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Schmidt-DevOps/SdoBitmask)[ Packagist](https://packagist.org/packages/sdo/bitmask)[ RSS](/packages/sdo-bitmask/feed)WikiDiscussions master Synced 1mo ago

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

SdoBitmask
==========

[](#sdobitmask)

SdoBitmask is a simple class to set flags of bitmasks

1. Sets or unsets bitmask flags.
2. Checks whether a flag is power of two.

Tests
-----

[](#tests)

There are some basic PHPUnit tests.

Author
======

[](#author)

Me:

1. [mailto:stefanie+\_gth@sdo.sh](mailto:stefanie+_gth@sdo.sh)

Licence
=======

[](#licence)

LGPL v3 or a commercial licence :) from [stefanie+\_gth@sdo.sh](mailto:stefanie+_gth@sdo.sh).

Source/Download
===============

[](#sourcedownload)

[Source can be found on GitHub](https://github.com/Schmidt-DevOps/sdo-bitmask.git)

Requirements
============

[](#requirements)

1. PHP 8.1, or 8.2 or newer

How to use
==========

[](#how-to-use)

Example script
--------------

[](#example-script)

Have a look at SdoBitmaskTest.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity66

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

Every ~60 days

Total

3

Last Release

3062d ago

Major Versions

v0.2 → v1.02017-12-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/6a9df3d95a655a4e58121e77ba7cf91da1fdb6c0ed4ebbc8371998df7ef9708c?d=identicon)[sdo.sh](/maintainers/sdo.sh)

---

Top Contributors

[![rene-s](https://avatars.githubusercontent.com/u/1558400?v=4)](https://github.com/rene-s "rene-s (21 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/sdo-bitmask/health.svg)

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

PHPackages © 2026

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