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. [Utility &amp; Helpers](/categories/utility)
4. /
5. nekoos-pood/bitwise-flag

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

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 4d 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

Popularity17

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

2449d 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)
```

###  Alternatives

[nfephp-org/sped-common

sped-common é parte do projeto NFePHP.

1051.7M64](/packages/nfephp-org-sped-common)[kartik-v/yii2-widget-rating

A Yii2 widget for the simple yet powerful bootstrap-star-rating plugin with fractional rating support (sub repo split from yii2-widgets)

444.1M8](/packages/kartik-v-yii2-widget-rating)[timeweb/phpstan-enum

Enum class reflection extension for PHPStan

443.2M21](/packages/timeweb-phpstan-enum)[sweetrdf/easyrdf

EasyRdf is a PHP library designed to make it easy to consume and produce RDF.

261.3M11](/packages/sweetrdf-easyrdf)[nivpenso/react-file-watcher

a file watcher package based on reactphp

181.9k1](/packages/nivpenso-react-file-watcher)[moell/laravel-rss

Based on moell/rss development laravel version

111.4k](/packages/moell-laravel-rss)

PHPackages © 2026

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