PHPackages                             contenir/formbuilder-laminas-mvc - 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. contenir/formbuilder-laminas-mvc

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

contenir/formbuilder-laminas-mvc
================================

Laminas MVC adapter for contenir/formbuilder — Laminas\\Db loader, view helper, submit controller, Module + ConfigProvider.

v0.1.5(4w ago)018MITPHPPHP ^8.1 || ^8.2 || ^8.3

Since May 10Pushed 4w agoCompare

[ Source](https://github.com/contenir/formbuilder-laminas-mvc)[ Packagist](https://packagist.org/packages/contenir/formbuilder-laminas-mvc)[ RSS](/packages/contenir-formbuilder-laminas-mvc/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (12)Versions (7)Used By (0)

contenir/formbuilder-laminas-mvc
================================

[](#contenirformbuilder-laminas-mvc)

Laminas MVC adapter for [`contenir/formbuilder`](https://github.com/contenir/formbuilder).

Wires the framework-agnostic form-builder engine into a Laminas MVC site: a Laminas\\Db loader, an entry-write repository, the standard `StoreSubmissionRegistrar`, a public-submit controller, a render-only view helper, and a service-manager Module + ConfigProvider with factories for everything.

Install
-------

[](#install)

```
composer require contenir/formbuilder-laminas-mvc
```

The package's Module gets auto-registered via `extra.laminas.module`and `laminas/laminas-component-installer`. If your site doesn't run the component-installer, add it to `config/modules.config.php`manually:

```
'Contenir\FormBuilder\Laminas\Mvc',
```

Configuration
-------------

[](#configuration)

Defaults in `config/autoload/`:

```
return [
    'formbuilder' => [
        // Service id of the Laminas\Db\Adapter\Adapter the loader
        // and entry repository should consume. Defaults to the
        // standard 'Laminas\Db\Adapter\Adapter' service name.
        'db_adapter'   => \Laminas\Db\Adapter\Adapter::class,
        // Static values for {site:*} TokenReplacer expansion.
        'site_context' => [],
        // Service ids of additional submission observers (extra
        // registrars) to attach beyond the built-in
        // StoreSubmissionRegistrar. Add email / webhook /
        // analytics registrars here.
        'observers'    => [],
    ],
];
```

Use
---

[](#use)

The package follows a **controller-driven render pattern** — the controller loads the definition, builds the form, branches on query state; the view template only renders. There is no view helper that does its own data-fetching.

```
use Contenir\FormBuilder\Laminas\Mvc\Loader\LaminasDbFormLoader;
use Contenir\FormBuilder\Service\FormBuilderService;

class FormController extends AbstractActionController
{
    public function __construct(
        private LaminasDbFormLoader $loader,
        private FormBuilderService $builder,
    ) {
    }

    public function indexAction(): ViewModel
    {
        $definition = $this->loader->loadBySlug('contact');
        $form       = $this->builder->build($definition);
        $isSuccess  = $this->params()->fromQuery('form') === 'ok';

        return new ViewModel([
            'definition' => $definition,
            'form'       => $form,
            'isSuccess'  => $isSuccess,
        ]);
    }
}
```

```

    Thank you.

```

Submissions POST to `/forms/submit/{slug}` (registered by the ConfigProvider's `router.routes.forms-submit` entry). The package's `SubmitController` builds the same submission service, attaches the `StoreSubmissionRegistrar` plus any observers from `formbuilder.observers`, and branches on the form's stored post-submission action (redirect\_referrer / redirect\_url / inline\_message — see contenir/formbuilder docs).

License
-------

[](#license)

MIT.

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance94

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

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

Every ~0 days

Total

6

Last Release

28d ago

### Community

Maintainers

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

---

Top Contributors

[![simon-mundy](https://avatars.githubusercontent.com/u/46739456?v=4)](https://github.com/simon-mundy "simon-mundy (6 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/contenir-formbuilder-laminas-mvc/health.svg)

```
[![Health](https://phpackages.com/badges/contenir-formbuilder-laminas-mvc/health.svg)](https://phpackages.com/packages/contenir-formbuilder-laminas-mvc)
```

###  Alternatives

[magento/community-edition

Magento 2 (Open Source)

12.1k53.0k12](/packages/magento-community-edition)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[neilime/twbs-helper-module

Laminas (formerly Zend Framework) module for easy integration of Twitter Bootstrap

21103.5k](/packages/neilime-twbs-helper-module)

PHPackages © 2026

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