PHPackages                             colinfrei/bitfield-type-bundle - 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. [Templating &amp; Views](/categories/templating)
4. /
5. colinfrei/bitfield-type-bundle

ActiveLibrary[Templating &amp; Views](/categories/templating)

colinfrei/bitfield-type-bundle
==============================

Adds a bitfield type to use in Symfony Forms

2.7.0(7y ago)47.4k2[1 issues](https://github.com/colinfrei/Symfony-Bitfield-Form-Type-Bundle/issues)MITPHP

Since Nov 19Pushed 7y ago1 watchersCompare

[ Source](https://github.com/colinfrei/Symfony-Bitfield-Form-Type-Bundle)[ Packagist](https://packagist.org/packages/colinfrei/bitfield-type-bundle)[ RSS](/packages/colinfrei-bitfield-type-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (6)Used By (0)

BitField Form Type Bundle
=========================

[](#bitfield-form-type-bundle)

Installation
------------

[](#installation)

Add the following to your deps file:

```
[ColinFreiBitFieldFormTypeBundle]
    git=http://github.com/colinfrei/Symfony-Bitfield-Form-Type-Bundle.git
    target=bundles/ColinFrei/BitFieldTypeBundle

```

Register the `ColinFrei` namespace in the app/autoload.php file, by adding this line in the `$loader->registerNamespaces(array(` array:

```
'ColinFrei'        => __DIR__.'/../vendor/bundles',

```

Register the bundle in your app/AppKernel.php file, by adding this line in the `bundles` array in the registerBundles() function:

```
new ColinFrei\BitFieldTypeBundle\ColinFreiBitFieldTypeBundle(),

```

Usage
-----

[](#usage)

Use the `BitfieldType` class when adding fields to the form, and pass in an array of options, like the type line in this example from the [Symfony documentation](http://symfony.com/doc/current/book/forms.html#building-the-form):

```
use ColinFrei\BitFieldTypeBundle\Form\Type\BitfieldType;

$form = $this->createFormBuilder($task)
    ->add('task', 'text')
    ->add('dueDate', 'date')
    ->add('type', BitfieldType::class, array(
        'choices' => array('Annoying' => '1', 'Fun' => '2', 'Cool' => '4', 'Takes a while' => '8'),
        'choices_as_values' => true
    )
    ->getForm();

```

###  Health Score

33

—

LowBetter than 74% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% 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

Every ~516 days

Total

5

Last Release

2853d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ed290e48473bd78c147f5fc60011b3540f1c0332e1662f359eb7cb1ebdc83566?d=identicon)[colinfrei](/maintainers/colinfrei)

---

Top Contributors

[![colinfrei](https://avatars.githubusercontent.com/u/752836?v=4)](https://github.com/colinfrei "colinfrei (12 commits)")[![do-see](https://avatars.githubusercontent.com/u/6745414?v=4)](https://github.com/do-see "do-see (1 commits)")[![gnutix](https://avatars.githubusercontent.com/u/310134?v=4)](https://github.com/gnutix "gnutix (1 commits)")

### Embed Badge

![Health badge](/badges/colinfrei-bitfield-type-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/colinfrei-bitfield-type-bundle/health.svg)](https://phpackages.com/packages/colinfrei-bitfield-type-bundle)
```

###  Alternatives

[simplethings/form-extra-bundle

This bundles provides extra FormType's for Symfony2

10283.6k](/packages/simplethings-form-extra-bundle)[cg/kint-bundle

This bundle lets you use the Kint function in your Twig templates. Kint is a print\_r() replacement which produces a structured, collapsible and escaped output

22125.8k1](/packages/cg-kint-bundle)[aequasi/view-model-bundle

Bundle to add ViewModel capabilities to Symfony2

105.0k](/packages/aequasi-view-model-bundle)[nurikabe/star-rating-bundle

Symfony form type and Twig extension for quick integration of FyneWorks' Star Rating widget

113.1k](/packages/nurikabe-star-rating-bundle)

PHPackages © 2026

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