BitMask Doctrine Type
For using Doctrine mapping type as bitmask
need to register type. See example in Doctrine documentation
For Symfony need only add custom type in Doctrine config:
# config/packages/doctrine.yaml
doctrine:
dbal:
types:
bitmask: BitMask\Doctrine\Types\BitMaskType
Install package via composer
composer require yaroslavche/bitmasktype
PHPUnit
$ composer phpunit
$ ./vendor/bin/phpunit
Infection (src without mutable code, so infection is disabled)
$ composer infection
$ ./vendor/bin/infection --min-msi=50 --min-covered-msi=70
$ composer phpstan
$ ./vendor/bin/phpstan analyse src/ -c phpstan.neon --level=7 --no-progress -vvv --memory-limit=1024M
$ composer cscheck
$ ./vendor/bin/phpcs
$ composer csfix
$ ./vendor/bin/phpcbf
Feel free to fork or contribute =)
This project is licensed under the MIT License - see the LICENSE file for details