sdo / bitmask
Bitmask handling
Installs: 22 367
Dependents: 4
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/sdo/bitmask
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-10-06 21:27:34 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.