PHPackages                             nekoos-pood/bitwise-flag - 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. nekoos-pood/bitwise-flag

ActiveLibrary

nekoos-pood/bitwise-flag
========================

Utility for handling bitwise operations | Utilidad para el manejo de operaciones bit a bit

v0.1.0(6y ago)02.1k3MITPHPPHP &gt;=7.0.0

Since Sep 1Pushed 6y ago1 watchersCompare

[ Source](https://github.com/nekoos-pood/bitwise-flag)[ Packagist](https://packagist.org/packages/nekoos-pood/bitwise-flag)[ RSS](/packages/nekoos-pood-bitwise-flag/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (3)Used By (3)

Bitwise
=======

[](#bitwise)

Install
-------

[](#install)

```
composer require nekoos-pood/bitwise-flag
```

Usage
-----

[](#usage)

### set

[](#set)

Flag up `bit` in current `flag set`

```
$flag = E_NOTICE;

BitwiseFlag::set($flags, E_RECOVERABLE_ERROR, true);

# $flag = E_NOTICE | E_RECOVERABLE_ERROR;
```

Flag down `bit` in current `flag set`

```
$flag = E_ALL;

BitwiseFlag::set($flags, E_NOTICE, false);

# $flag = E_ALL & ~E_NOTICE;
```

match

Check in the current `set of flags` if it is up `bit`

```
$flag = E_ALL & ~E_NOTICE;

$check1 = BitwiseFlag::match($flags, E_RECOVERABLE_ERROR);
$check2 = BitwiseFlag::match($flags, E_NOTICE);

# $check1 = true;
# $check2 = false;
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

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

2442d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5f6943e57a600055ce38141834bb9616c01b189c3770a07e9a990a49b92e3619?d=identicon)[NekoOs](/maintainers/NekoOs)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nekoos-pood-bitwise-flag/health.svg)

```
[![Health](https://phpackages.com/badges/nekoos-pood-bitwise-flag/health.svg)](https://phpackages.com/packages/nekoos-pood-bitwise-flag)
```

PHPackages © 2026

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