sdo/bitmask

Bitmask handling

Installs: 22 367

Dependents: 4

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

pkg:composer/sdo/bitmask

v1.0 2017-12-29 12:42 UTC

This package is auto-updated.

Last update: 2025-10-06 21:27:34 UTC


README

SdoBitmask is a simple class to set flags of bitmasks

  1. Sets or unsets bitmask flags.
  2. Checks whether a flag is power of two.

Tests

There are some basic PHPUnit tests.

Author

Me:

  1. mailto:stefanie+_gth@sdo.sh

Licence

LGPL v3 or a commercial licence :) from stefanie+_gth@sdo.sh.

Source/Download

Source can be found on GitHub

Requirements

  1. PHP 8.1, or 8.2 or newer

How to use

Example script

Have a look at SdoBitmaskTest.