PHPackages                             inspiredminds/contao-backend-forms - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. inspiredminds/contao-backend-forms

ActiveContao-bundle[Utility &amp; Helpers](/categories/utility)

inspiredminds/contao-backend-forms
==================================

Extension to Contao Haste for quick creation of back end forms.

1.1.1(3mo ago)26.9k↓21.7%23LGPL-3.0-or-laterPHPPHP &gt;=8.1

Since May 18Pushed 3mo ago3 watchersCompare

[ Source](https://github.com/inspiredminds/contao-backend-forms)[ Packagist](https://packagist.org/packages/inspiredminds/contao-backend-forms)[ GitHub Sponsors](https://github.com/sponsors/fritzmg)[ RSS](/packages/inspiredminds-contao-backend-forms/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (12)Versions (24)Used By (3)

[![](https://camo.githubusercontent.com/48e885374443fffe07aa36ba125d58015cdaea4ce1ee74d56a1d58ecbfaadf7a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e7370697265646d696e64732f636f6e74616f2d6261636b656e642d666f726d732e737667)](https://packagist.org/packages/inspiredminds/contao-backend-forms)[![](https://camo.githubusercontent.com/7883b129eba5e09def88ba8472b0721235ea79148570db60041d7fb00eddddcc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696e7370697265646d696e64732f636f6e74616f2d6261636b656e642d666f726d732e737667)](https://packagist.org/packages/inspiredminds/contao-backend-forms)

Contao Backend Forms
====================

[](#contao-backend-forms)

Extension of [`Codefog\HasteBundle\Form\Form`](https://github.com/codefog/contao-haste/blob/main/docs/Form.md) of `codefog/contao-haste` to quickly build a form for the back end.

Example
-------

[](#example)

Create the form like a regular Haste Form, just via the `BackendForm` class in your back end controller for example:

```
// src/Controller/MyFormController.php
namespace App\Controller;

use Contao\CoreBundle\Controller\AbstractBackendController;
use InspiredMinds\ContaoBackendFormsBundle\Form\BackendForm;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;

#[Route('%contao.backend.route_prefix%/my-form', name: self::class, defaults: ['_scope' => 'backend'])]
class MyFormController extends AbstractBackendController
{
    public function __invoke(Request $request): Response
    {
        $form = new BackendForm('my-form', 'POST');

        $form->addFormField('lorem', [
            'label' => ['Lorem', 'Lorem description.'],
            'inputType' => 'text',
            'eval' => ['tl_class' => 'w50', 'maxlength' => 255],
        ]);

        $form->addFormField('ipsum', [
            'label' => ['Ipsum', 'Ipsum description.'],
            'inputType' => 'text',
            'eval' => ['tl_class' => 'w50', 'maxlength' => 255],
        ]);

        $form->addSubmitFormField('Submit');

        if ($form->validate()) {
            // Do something …

            return new RedirectResponse($request->getUriForPath($request->getPathInfo()));
        }

        return $this->render('my-form.html.twig', [
            'title' => 'My form',
            'headline' => 'My form',
            'form' => $form,
        ]);
    }
}
```

```
{# templates/my-form.html.twig #}
{% extends "@Contao/be_main" %}

{% block main_content %}
    {{ form.generate()|raw }}
{% endblock %}
```

This would then render a form like this:

[![](https://raw.githubusercontent.com/inspiredminds/contao-backend-forms/refs/heads/master/screenshot.png)](https://raw.githubusercontent.com/inspiredminds/contao-backend-forms/refs/heads/master/screenshot.png)

###  Health Score

54

—

FairBetter than 96% of packages

Maintenance81

Actively maintained with recent releases

Popularity27

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity78

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 ~113 days

Recently: every ~83 days

Total

23

Last Release

101d ago

Major Versions

0.3.5 → 1.0.02022-09-07

PHP version history (2 changes)0.1.0-alphaPHP &gt;=7.1

1.0.2PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/25f6ec05570f72d0fcc4d0a4fef2309799d53badf8b30484284e73724661e0d8?d=identicon)[fritzmg](/maintainers/fritzmg)

---

Top Contributors

[![fritzmg](https://avatars.githubusercontent.com/u/4970961?v=4)](https://github.com/fritzmg "fritzmg (46 commits)")

---

Tags

contaobackendForms

### Embed Badge

![Health badge](/badges/inspiredminds-contao-backend-forms/health.svg)

```
[![Health](https://phpackages.com/badges/inspiredminds-contao-backend-forms/health.svg)](https://phpackages.com/packages/inspiredminds-contao-backend-forms)
```

###  Alternatives

[codefog/contao-news_categories

News Categories bundle for Contao Open Source CMS

3189.0k6](/packages/codefog-contao-news-categories)[terminal42/contao-node

Node bundle for Contao Open Source CMS

3177.0k6](/packages/terminal42-contao-node)[symfony/security-bundle

Provides a tight integration of the Security component into the Symfony full-stack framework

2.5k185.6M2.4k](/packages/symfony-security-bundle)[metamodels/core

MetaModels core

10156.4k68](/packages/metamodels-core)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[terminal42/notification_center

Notification Center extension for Contao Open Source CMS

80413.7k101](/packages/terminal42-notification-center)

PHPackages © 2026

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