yaroslavche / bitmasktype
BitMaskType
Installs: 7 099
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 2
Open Issues: 0
Requires
- php: ^7.2
- doctrine/dbal: ^2.9
- yaroslavche/bitmask: ^0.1.1
Requires (Dev)
- infection/infection: ^0.13.1
- phpstan/phpstan: ^0.11.8
- phpunit/phpunit: ^8.1
- roave/backward-compatibility-check: ^3.0
- squizlabs/php_codesniffer: ^3.4
- thecodingmachine/phpstan-strict-rules: ^0.11.1
This package is auto-updated.
Last update: 2024-11-06 23:37:20 UTC
README
BitMaskType
BitMask Doctrine Type
Getting Started
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
Installing
Install package via composer
composer require yaroslavche/bitmasktype
Scripts:
Tests
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
PHPStan
$ composer phpstan $ ./vendor/bin/phpstan analyse src/ -c phpstan.neon --level=7 --no-progress -vvv --memory-limit=1024M
PHP-CS
$ composer cscheck $ ./vendor/bin/phpcs
$ composer csfix $ ./vendor/bin/phpcbf
Contributing
Feel free to fork or contribute =)
License
This project is licensed under the MIT License - see the LICENSE file for details