PHPackages                             saeven/zf2-form-builder - 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. saeven/zf2-form-builder

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

saeven/zf2-form-builder
=======================

Powertools for much lazy with Laminas because I hate writing Controllers, Forms, InputFilters, their Factories, and you hate writing all that stuff too.

1.0.1(5y ago)916.7k↓50%MITPHPPHP ^7.4 || &gt;=8

Since Oct 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Saeven/zf2-circlical-formtool)[ Packagist](https://packagist.org/packages/saeven/zf2-form-builder)[ Docs](https://github.com/Saeven/zf2-circlical-formtool)[ RSS](/packages/saeven-zf2-form-builder/feed)WikiDiscussions master Synced 1mo ago

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

Laminas Powertools
==================

[](#laminas-powertools)

[![Latest Stable Version](https://camo.githubusercontent.com/a472a154dc01359d9bf5a677abf92e3d6ed96a6d44eb02c59ce52256f49e4b97/68747470733a2f2f706f7365722e707567782e6f72672f73616576656e2f7a66322d666f726d2d6275696c6465722f76)](//packagist.org/packages/saeven/zf2-form-builder) [![Total Downloads](https://camo.githubusercontent.com/299ec4126bb07833060918c81bb27352cd617a9572a8dd3300ae7204b7f19fc2/68747470733a2f2f706f7365722e707567782e6f72672f73616576656e2f7a66322d666f726d2d6275696c6465722f646f776e6c6f616473)](//packagist.org/packages/saeven/zf2-form-builder) [![Latest Unstable Version](https://camo.githubusercontent.com/5070a866b16f8fc26601fd807dd66546a118af18a2c8d95305a769241be6ba6e/68747470733a2f2f706f7365722e707567782e6f72672f73616576656e2f7a66322d666f726d2d6275696c6465722f762f756e737461626c65)](//packagist.org/packages/saeven/zf2-form-builder) [![License](https://camo.githubusercontent.com/23489a2f7e6378f35b43fb121248273c0901a635076e38a240766c5194604603/68747470733a2f2f706f7365722e707567782e6f72672f73616576656e2f7a66322d666f726d2d6275696c6465722f6c6963656e7365)](//packagist.org/packages/saeven/zf2-form-builder)

Ok. Let's face it. Wiring forms with Laminas takes time. I do love Zend Framework and Laminas, but Forms taste like the cardboard at the bottom of your tub of ice cream. I built this form helper to spark a little joy. Forms are just less terrible with this in my composer.json, and in yours too.

PLUS, it also writes controllers.

THEN, it'll open them in your PHPStorm (or whatever else).

It's a CLI tool, is extremely lightweight, and is very simple to use.

    powertool-building-forms.mov    Installation
------------

[](#installation)

```
composer require --dev saeven/zf2-form-builder

```

Then, add it to your application.config.php (laminas-mvc) with `Circlical\LaminasTools`.

Usage
-----

[](#usage)

### Forms

[](#forms)

Suppose you wanted to create a FooForm, FooFormFactory, FooInputFilter and FooInputFilterFactory in the Bar module, and wire it all up in your form\_elements and input\_filters config keys (in Bar).

*What a chore to even write that!*

Well, this tool turns all that into a one-liner.

```
vendor/bin/laminas ct:form

```

Answer the questions, and you're off to the races.

### Controllers

[](#controllers)

It'll write controllers as well.

```
vendor/bin/laminas ct:controller

```

Successfully Achieve 98% Lazy
-----------------------------

[](#successfully-achieve-98-lazy)

All you have to do, is pull those config files into your module.config.php like so:

```
'form_elements' => require forms.config.php,
'input_filters' => require inputfilters.config.php,

```

How's that for service! You can kick up your feet, tinker with your Pomodoro timer and rake in that same hourly wage with a maximized degree of relaxation.

This tool has been a huge timesaver for me, but please feel free to recommend improvements! I also accept cookie recipes.

### Some Notes

[](#some-notes)

- Assumes you are structuring your modules like module/Foo/src/Controller
- I could have dug deep and created some nice abstractions, but I didn't.
- Didn't care enough to write tests for now. Hammered this last version out real fast, wanted it for another project that has a ton of forms and controllers on the horizon.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

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

Total

5

Last Release

1835d ago

Major Versions

0.9.2 → 1.0.02021-05-06

PHP version history (4 changes)0.9PHP &gt;=5.5

0.9.1PHP &gt;=5.6

0.9.2PHP ^7.4

1.0.0PHP ^7.4 || &gt;=8

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/887224?v=4)[Alexandre Lemaire](/maintainers/Saeven)[@Saeven](https://github.com/Saeven)

---

Top Contributors

[![Saeven](https://avatars.githubusercontent.com/u/887224?v=4)](https://github.com/Saeven "Saeven (30 commits)")

---

Tags

laminaslaminas-formlaminas-mvclaminasformtoolsutilitiesFormsgenerate

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/saeven-zf2-form-builder/health.svg)

```
[![Health](https://phpackages.com/badges/saeven-zf2-form-builder/health.svg)](https://phpackages.com/packages/saeven-zf2-form-builder)
```

###  Alternatives

[vaimo/composer-patches

Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and patch command for testing/troubleshooting added patches.

2994.3M16](/packages/vaimo-composer-patches)[ilya/belt

A handful of tools for PHP developers.

71020.8k1](/packages/ilya-belt)[barryvdh/laravel-form-bridge

This packages integrates Symfony Form Component in Laravel.

163354.8k1](/packages/barryvdh-laravel-form-bridge)[longman/ip-tools

PHP IP Tools for manipulation with IPv4 and IPv6

147245.6k6](/packages/longman-ip-tools)[lara-zeus/bolt

Zeus Bolt is form builder for your users, with so many use cases

23640.2k2](/packages/lara-zeus-bolt)[neilime/twbs-helper-module

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

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

PHPackages © 2026

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