PHPackages                             depage/htmlform - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. depage/htmlform

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

depage/htmlform
===============

depage-forms is PHP library for HTML form generation with focus on usability. By abstracting HTML, browser flaws (duplicate form submissions) and form validation, it provides a comfortable way to obtain reliable and validated data from users.

1.4.1(12y ago)2233610[4 issues](https://github.com/depage/depage-forms/issues)1MITJavaScriptPHP  &gt;= 5.3CI failing

Since Sep 11Pushed 3d ago5 watchersCompare

[ Source](https://github.com/depage/depage-forms)[ Packagist](https://packagist.org/packages/depage/htmlform)[ Docs](http://docs.depage.net/depage-forms/)[ RSS](/packages/depage-htmlform/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (3)Used By (1)

HTML5-forms in PHP with ease and comfort
========================================

[](#html5-forms-in-php-with-ease-and-comfort)

depage-forms is PHP library for HTML form generation with focus on usability. It is part of the upcoming version of [depage-cms](http://www.depagecms.net), but it also works as a standalone library. By abstracting HTML, browser flaws (duplicate form submissions) and form validation, it provides a comfortable way to obtain reliable and validated data from users.

Features
--------

[](#features)

- validation
    - server side
    - client side [(jQuery Tools)](http://flowplayer.org/tools/ "jQuery Tools")
    - available for standard input elements
    - customizable with regular expressions
    - basic CSRF protection
- HTML5 form features
    - attributes : placeholder, autofocus, textbox datalists, title, pattern
    - input elements : boolean (checkbox), email, hidden, multiple (checkbox, select list), number, password, range, search, single (radio, select list), tel, text, textarea, url
- richtext element (wysiwyg HTML editor)
- averts form resubmission
- divide forms into ѕeparate parts
- neat return values with appropriate data types
- easy language localisation
- session timeout
- simple creditcard validation (by values)
- unit tested

Prerequisites
-------------

[](#prerequisites)

- PHP 8.0
- jQuery optional, for client side validation and richtext field)

Introduction
------------

[](#introduction)

- You can get a basic introduction at: [depage-forms: html5 forms made easy (part I)](Docs/Introduction.md)
- How to do Form Validation [depage-forms: validation of html5 forms (part II)](Docs/Validation.md)

Install Using Composer
----------------------

[](#install-using-composer)

Get composer at  and then just add this to your composer.json.

```
composer require depage/htmlform

```

to install the current version of depage-htmlform into your vendor dir.

For more information
--------------------

[](#for-more-information)

- You can fork us at:
- You find the documentation at:
- For more information about depage-cms go to:
- if you want to support with development [More info](Docs/Developer.md)

License (dual)
--------------

[](#license-dual)

- GPL2:
- MIT:

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance61

Regular maintenance activity

Popularity24

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.7% 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 ~9 days

Total

2

Last Release

4620d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/98fa871aefc695ca207a9972094d72b38a2e49071eb1e3807077b231d4742e77?d=identicon)[jonasjonas](/maintainers/jonasjonas)

---

Top Contributors

[![jonasjonas](https://avatars.githubusercontent.com/u/112114?v=4)](https://github.com/jonasjonas "jonasjonas (463 commits)")[![benedict-w](https://avatars.githubusercontent.com/u/1303610?v=4)](https://github.com/benedict-w "benedict-w (13 commits)")[![vascowhite](https://avatars.githubusercontent.com/u/874109?v=4)](https://github.com/vascowhite "vascowhite (4 commits)")[![bwl21](https://avatars.githubusercontent.com/u/2022976?v=4)](https://github.com/bwl21 "bwl21 (3 commits)")[![tremlin](https://avatars.githubusercontent.com/u/271119?v=4)](https://github.com/tremlin "tremlin (1 commits)")

---

Tags

form-builderformshtml5-formsphpphp-libraryvalidationhtmlformForms

### Embed Badge

![Health badge](/badges/depage-htmlform/health.svg)

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

###  Alternatives

[siriusphp/validation

Data validation library. Validate arrays, array objects, domain models etc using a simple API. Easily add your own validators on top of the already dozens built-in validation rules

181743.3k13](/packages/siriusphp-validation)[apy/jsfv-bundle

Symfony2 Javascript Form Validation Bundle with localisation support

92770.5k](/packages/apy-jsfv-bundle)[progsmile/request-validator

Simple PHP Request Validator

33113.3k1](/packages/progsmile-request-validator)[stroker/form

ZF2 module for extending forms with live clientside validation

4157.1k](/packages/stroker-form)

PHPackages © 2026

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