sdo / bitmask
Bitmask handling
v1.0
2017-12-29 12:42 UTC
Requires (Dev)
- php: >=7.1
- phpunit/php-code-coverage: ~5.2
- phpunit/phpunit: ~6.0
- squizlabs/php_codesniffer: 2.*
This package is auto-updated.
Last update: 2025-03-07 23:40:30 UTC
README
SdoBitmask is a simple class to set flags of bitmasks
- Sets or unsets bitmask flags.
- Checks whether a flag is power of two.
Tests
There are some basic PHPUnit tests.
Author
Me:
Licence
LGPL v3 or a commercial licence :) from stefanie+_gth@sdo.sh.
Source/Download
Requirements
- PHP 8.1, or 8.2 or newer
How to use
Example script
Have a look at SdoBitmaskTest.