PHPackages                             niko9911/bitwise-flags - 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. niko9911/bitwise-flags

ActiveLibrary

niko9911/bitwise-flags
======================

Managing your flag booleans with bits.

1.0.2(5y ago)711.8k—0%[1 issues](https://github.com/NikoGrano/php-bitwise-flags/issues)MITPHPPHP ^7.1|^8.0CI failing

Since Mar 4Pushed 5y ago1 watchersCompare

[ Source](https://github.com/NikoGrano/php-bitwise-flags)[ Packagist](https://packagist.org/packages/niko9911/bitwise-flags)[ RSS](/packages/niko9911-bitwise-flags/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (4)Used By (0)

PHP Flags
=========

[](#php-flags)

The number of flags you can use is limited to the architecture of your system, e.g.: 32 flags on a 32-bit system or 64 flags on 64-bit system. To store 64-bits flags in a database, you will need to store it as UNSIGNED BIGINT in MySQL.

Install
-------

[](#install)

Via [composer](http://getcomposer.org):

```
composer require niko9911/bitwise-flags
```

Usage
-----

[](#usage)

Below some example usage code

```
