sdo/bitmask

Bitmask handling

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

This package is auto-updated.

Last update: 2024-04-30 00:33:40 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.