PHPackages                             piwi91/form-handler - 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. piwi91/form-handler

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

piwi91/form-handler
===================

A Form Handler implementation for the Symfony Form Component

v1.0.0(10y ago)0201MITPHP

Since Sep 17Pushed 10y ago2 watchersCompare

[ Source](https://github.com/piwi91/FormHandler)[ Packagist](https://packagist.org/packages/piwi91/form-handler)[ RSS](/packages/piwi91-form-handler/feed)WikiDiscussions master Synced 1mo ago

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

FormHandler
===========

[](#formhandler)

[![Build Status](https://camo.githubusercontent.com/2573a1e63a14eb351dcff0e0cd3a010cec2db2d5dfbb99650bc840e73ff0214e/68747470733a2f2f7472617669732d63692e6f72672f7069776939312f466f726d48616e646c65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/piwi91/FormHandler)

This is a Form Handler implementation which I used in combination with the Symfony Form component.

[Click here to go to the blog post I wrote about the form handler.](http://www.pimwiddershoven.nl/entry/introduction-to-the-formhandler-library)

Usage
-----

[](#usage)

Implement the `FormHandlerInterface` OR extend the `AbstractFormHandler` and implement the `postProcess` method.

You can use a try/catch to catch validation exceptions.

Example:

```
public function anActionInAController(Request $request)
{
    $formHandler = new MyFancyFormHandler($formFactory, $form);

    $form = $formHandler->form();

    if ($request->isMethod('POST') {
        try {
            $formHandler->process($form, $request);
        } catch (ValidationException $e) {
            // Do something with the validation... or not ;-) (and render the page including the validation errors)
        }
    }

    return $this->render('my_view.html.twig', ['form' => $form->createView()]);
}

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

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

Unknown

Total

1

Last Release

3896d ago

### Community

Maintainers

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

---

Top Contributors

[![dennisdegreef](https://avatars.githubusercontent.com/u/361905?v=4)](https://github.com/dennisdegreef "dennisdegreef (6 commits)")[![piwi91](https://avatars.githubusercontent.com/u/667095?v=4)](https://github.com/piwi91 "piwi91 (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/piwi91-form-handler/health.svg)

```
[![Health](https://phpackages.com/badges/piwi91-form-handler/health.svg)](https://phpackages.com/packages/piwi91-form-handler)
```

###  Alternatives

[wallabag/wallabag

open source self hostable read-it-later web application

12.6k2.2k](/packages/wallabag-wallabag)[craue/config-bundle

Database-stored settings made available via a service for your Symfony project.

1771.0M4](/packages/craue-config-bundle)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[netgen/content-browser

Netgen Content Browser is a Symfony bundle that provides an interface which selects items from any kind of backend and returns the IDs of selected items back to the calling code.

14112.1k8](/packages/netgen-content-browser)[leapt/core-bundle

Symfony LeaptCoreBundle

2529.1k4](/packages/leapt-core-bundle)[hackzilla/ticket-bundle

This Bundle provides multilingual ticketing functionality for Symfony applications.

6529.3k1](/packages/hackzilla-ticket-bundle)

PHPackages © 2026

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