PHPackages                             yaroslavche/bitmasktype - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. yaroslavche/bitmasktype

ActiveLibrary[Database &amp; ORM](/categories/database)

yaroslavche/bitmasktype
=======================

BitMaskType

0.0.1(6y ago)09.0k↓50%2MITPHPPHP ^7.2

Since Jun 6Pushed 6y ago2 watchersCompare

[ Source](https://github.com/yaroslavche/BitMaskType)[ Packagist](https://packagist.org/packages/yaroslavche/bitmasktype)[ RSS](/packages/yaroslavche-bitmasktype/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (8)Versions (2)Used By (0)

[![Build Status](https://camo.githubusercontent.com/59d13c215da2000b273df719d2498fd4a67b607341e68eb15a474e1732b7bee4/68747470733a2f2f7472617669732d63692e6f72672f7961726f736c61766368652f4269744d61736b547970652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/yaroslavche/BitMaskType)[![codecov](https://camo.githubusercontent.com/81fcc3de6d6b1b5e60d54f8d3642d17c5ad9e5da5f6e12b833f8aaf633e3f82b/68747470733a2f2f636f6465636f762e696f2f67682f7961726f736c61766368652f6269746d61736b747970652f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/yaroslavche/bitmasktype)

BitMaskType
===========

[](#bitmasktype)

[BitMask](https://github.com/yaroslavche/BitMask) Doctrine Type

Getting Started
---------------

[](#getting-started)

For using Doctrine mapping type as `bitmask` need to register type. See example [in Doctrine documentation](https://www.doctrine-project.org/projects/doctrine-orm/en/latest/cookbook/custom-mapping-types.html)

For Symfony need only add custom type in Doctrine config:

```
# config/packages/doctrine.yaml

doctrine:
    dbal:
        types:
            bitmask: BitMask\Doctrine\Types\BitMaskType
```

[Usage example](https://medium.com/@yaroslav429/symfony-4-doctrine-custom-mapping-type-1c8ff679f4c1)

### Installing

[](#installing)

Install package via [composer](https://getcomposer.org/)

```
composer require yaroslavche/bitmasktype
```

Scripts:
--------

[](#scripts)

#### Tests

[](#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

[](#phpstan)

```
$ composer phpstan
$ ./vendor/bin/phpstan analyse src/ -c phpstan.neon --level=7 --no-progress -vvv --memory-limit=1024M
```

#### PHP-CS

[](#php-cs)

```
$ composer cscheck
$ ./vendor/bin/phpcs
```

```
$ composer csfix
$ ./vendor/bin/phpcbf
```

Contributing
------------

[](#contributing)

Feel free to fork or contribute =)

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2539d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17838239?v=4)[Yaroslav](/maintainers/yaroslavche)[@yaroslavche](https://github.com/yaroslavche)

---

Top Contributors

[![yaroslavche](https://avatars.githubusercontent.com/u/17838239?v=4)](https://github.com/yaroslavche "yaroslavche (3 commits)")

---

Tags

phpdoctrinebinaryPHP7bitbitmaskbitwise

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/yaroslavche-bitmasktype/health.svg)

```
[![Health](https://phpackages.com/badges/yaroslavche-bitmasktype/health.svg)](https://phpackages.com/packages/yaroslavche-bitmasktype)
```

###  Alternatives

[scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

58723.9M36](/packages/scienta-doctrine-json-functions)[clouddueling/mysqldump-php

PHP version of mysqldump cli that comes with MySQL

1.3k22.9k](/packages/clouddueling-mysqldump-php)[yaroslavche/bitmask

BitMask, EnumBitMask

3453.7k1](/packages/yaroslavche-bitmask)[jawira/db-draw

📐 Takes a DoctrineORM connection and generates a database diagram in .puml format

2295.1k2](/packages/jawira-db-draw)[andanteproject/soft-deletable-bundle

A Symfony Bundle to handle soft deletable with Doctrine Entities

1028.3k](/packages/andanteproject-soft-deletable-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
