PHPackages                             axetools/bitflagtrait - 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. axetools/bitflagtrait

ActiveLibrary

axetools/bitflagtrait
=====================

A PHP trait to enable bitwise comparison of flags

v2.0.1(1y ago)04.0k↓100%MITPHP ^7.1 || ^8.0

Since Jul 17Compare

[ Source](https://github.com/AxeTools/BitFlagTrait)[ Packagist](https://packagist.org/packages/axetools/bitflagtrait)[ RSS](/packages/axetools-bitflagtrait/feed)WikiDiscussions Synced today

READMEChangelogDependencies (2)Versions (6)Used By (0)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/AxeTools/BitFlagTrait).

###  Release Activity

Cadence

Every ~15 days

Recently: every ~5 days

Total

6

Last Release

534d ago

Major Versions

v1.0.0 → v2.0.02024-09-13

v1.0.1 → 2.x-dev2024-10-03

PHP version history (4 changes)v1.0.0PHP ^5.6 || ^7.0

v2.0.0PHP ^7.1

1.x-devPHP ^5.6 || ^7.0 || ^8.0

2.x-devPHP ^7.1 || ^8.0

### Community

Maintainers

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

---

Tags

classtraitflagscomparisonflagclassesoperationoperationsbitwisecomparisons

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/axetools-bitflagtrait/health.svg)

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

###  Alternatives

[nette/robot-loader

🍀 Nette RobotLoader: high performance and comfortable autoloader that will search and autoload classes within your application.

89051.7M298](/packages/nette-robot-loader)[reinder83/binary-flags

Useful class for binary operations

1274.2k](/packages/reinder83-binary-flags)[stefangabos/world_countries

Constantly updated lists of world countries, territories and areas of geographical interest, with associated alpha-2, alpha-3 and numeric codes as defined by the ISO 3166-1 standard, available in multiple formats and languages, with national flags included

1.5k118.8k1](/packages/stefangabos-world-countries)[nunomaduro/mock-final-classes

Allows mocking of final methods and classes in PHP.

113808.5k16](/packages/nunomaduro-mock-final-classes)[cybercog/laravel-eloquent-flag

Laravel Eloquent boolean &amp; timestamp flagged attributes behavior.

13518.4k](/packages/cybercog-laravel-eloquent-flag)[fanmade/laravel-bitwise-trait

Simple trait to use bitwise operators on any class

1569.5k](/packages/fanmade-laravel-bitwise-trait)

PHPackages © 2026

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