PHPackages                             wa72/formlib - 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. wa72/formlib

ActiveLibrary

wa72/formlib
============

A PHP library for creating and processing HTML forms

166PHP

Since Jul 22Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/wasinger/formlib)[ Packagist](https://packagist.org/packages/wa72/formlib)[ RSS](/packages/wa72-formlib/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

FORMLIB
=======

[](#formlib)

Yet another PHP library for creating and processing HTML forms (WIP).

How it's different?
-------------------

[](#how-its-different)

- It is intended for quick, configuration driven creation of contact forms that are sent by email. It is not intended for creating editing forms for database records.
- Forms can either be defined by YAML configuration files (or by associative PHP arrays or any other format that can be turned into a PHP array) or programmatically using a fluent interface.
- Forms are rendered either in a customizable generic way or by replacing the form elements in an HTML template containing the whole form.
- Forms are processed using FormProcessors. Currently there is only a FormProcessor that sends the form by email using SwiftMailer but you can easily add your own form processor.
- Form elements are created using DOM and are returned as DOM objects. This way, Formlib does not depend on a particular templating system but it is possible to alter the form and its elements after creation by manipulation the DOM, e.g. by adding and altering attributes.

Dependencies
------------

[](#dependencies)

- [symfony/yaml](https://github.com/symfony/yaml)
- SwiftMailer
- [HtmlPageDom](https://github.com/wasinger/htmlpagedom) for DOM manipulation which in turn builds upon [Symfony's DomCrawler](https://github.com/symfony/DomCrawler) component

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

[](#installation)

Formlib is registered on packagist.org so it can be installed using composer:

require: "wa72/formlib": "dev-master"

Usage
-----

[](#usage)

See the "examples" directory.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance40

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

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.

### Community

Maintainers

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

### Embed Badge

![Health badge](/badges/wa72-formlib/health.svg)

```
[![Health](https://phpackages.com/badges/wa72-formlib/health.svg)](https://phpackages.com/packages/wa72-formlib)
```

PHPackages © 2026

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