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

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

appcia/bitmask
==============

Wraps bit mask number in an easily manageable object.

v1.0(12y ago)378MITPHP

Since Apr 27Pushed 11y ago1 watchersCompare

[ Source](https://github.com/appcia/bitmask)[ Packagist](https://packagist.org/packages/appcia/bitmask)[ Docs](http://appcia.pl)[ RSS](/packages/appcia-bitmask/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Appcia - Bit Mask
=================

[](#appcia---bit-mask)

Wraps bit mask number in an easily manageable object.

Features
--------

[](#features)

- individuals bits could be set by integer value or by name
- value changed callback (multiple listeners)
- also provides array access, serialization, countable enabled bits
- services binary string representation

Usage
-----

[](#usage)

See unit tests:

- [Mask wrapper](https://github.com/appcia/bitmask/blob/master/tests/Appcia/BitMask/MaskTest.php)
- [Named bits mask wrapper](https://github.com/appcia/bitmask/blob/master/tests/Appcia/BitMask/Mask/OptionsTest.php)

Changelog
---------

[](#changelog)

### v1.0

[](#v10)

- Initial release

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

4400d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b41263950424e0bce7866fe2c1737ca4ff572d715f9497f7d84319b7407eb5f6?d=identicon)[appcia](/maintainers/appcia)

---

Top Contributors

[![appcia](https://avatars.githubusercontent.com/u/3293737?v=4)](https://github.com/appcia "appcia (9 commits)")

---

Tags

optionsbitmaskbitmaskbitwise

### Embed Badge

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

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

###  Alternatives

[symfony/options-resolver

Provides an improved replacement for the array\_replace PHP function

3.2k493.9M1.6k](/packages/symfony-options-resolver)[robinherbots/jquery.inputmask

Inputmask is a javascript library which creates an input mask. Inputmask can run against vanilla javascript, jQuery and jqlite.

6.5k276.6k4](/packages/robinherbots-jqueryinputmask)[yaroslavche/bitmask

BitMask, EnumBitMask

3453.7k1](/packages/yaroslavche-bitmask)[spatie/laravel-options

Create arrays of options from different sources

253294.8k2](/packages/spatie-laravel-options)[zumba/swivel

Strategy driven feature toggles

209135.7k5](/packages/zumba-swivel)[longman/ip-tools

PHP IP Tools for manipulation with IPv4 and IPv6

147245.6k6](/packages/longman-ip-tools)

PHPackages © 2026

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