PHPackages                             bml/form-theme-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. bml/form-theme-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

bml/form-theme-bundle
=====================

Bundle enables ability to define form theme in form type classes.

2.0.0(5y ago)25.7kMITPHPCI failing

Since Jan 29Pushed 5y ago1 watchersCompare

[ Source](https://github.com/bOmBeLq/form-theme-bundle)[ Packagist](https://packagist.org/packages/bml/form-theme-bundle)[ RSS](/packages/bml-form-theme-bundle/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (4)Versions (5)Used By (0)

About
-----

[](#about)

Form theme bundle enables ability to define form theme in FormType classes.

There is pull request implementing this feature awaiting review: [symfony/symfony#23990](https://github.com/symfony/symfony/pull/23990)

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

[](#installation)

1. `composer require bml/form-theme-bundle`
2. If you are not using symfony flex add `new Bml\FormThemeBundle\BmlFormThemeBundle()` to your `AppKernel.php`

Usage
-----

[](#usage)

To define form type theme define `theme` option for the form. For example in Type class:

```
class YourType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
           ->add('field')
           [...]
    }
    public function configureOptions(OptionsResolver $resolver)
    {
        $resolver->setDefaults([
            'theme' => 'app/form/my_type_theme.html.twig'
        ]);
    }
}
```

When you call `createView()` on your form this bundle will call equivalent to `{% form_theme form 'app/form/my_type_theme.html.twig' %}` on your form in background.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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

Every ~397 days

Total

4

Last Release

1931d ago

Major Versions

v1.0.1 → 2.0.02021-05-04

### Community

Maintainers

![](https://www.gravatar.com/avatar/1e5c0a52427b60d57b20681bcc29929ed7921fbf99b6457070b6ea2e589e95f9?d=identicon)[bmL](/maintainers/bmL)

---

Top Contributors

[![bOmBeLq](https://avatars.githubusercontent.com/u/1465880?v=4)](https://github.com/bOmBeLq "bOmBeLq (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bml-form-theme-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/bml-form-theme-bundle/health.svg)](https://phpackages.com/packages/bml-form-theme-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k18.3M430](/packages/easycorp-easyadmin-bundle)[contao/core-bundle

Contao Open Source CMS

1301.7M3.1k](/packages/contao-core-bundle)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.9M535](/packages/pimcore-pimcore)[chameleon-system/chameleon-base

The Chameleon System core.

1029.4k6](/packages/chameleon-system-chameleon-base)[kimai/kimai

Kimai - Time Tracking

4.8k9.4k1](/packages/kimai-kimai)[ehyiah/ux-quill

Symfony UX Bundle to use Quill JS wysiwyg text editor with full and easy customisation

63101.5k3](/packages/ehyiah-ux-quill)

PHPackages © 2026

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