PHPackages                             validformbuilder/validformbuilder - 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. validformbuilder/validformbuilder

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

validformbuilder/validformbuilder
=================================

The easiest tool for generating XHTML 1.0 valid and CSS enabled webforms.

v5.3.0(1y ago)3034.7k↓37.6%16[33 issues](https://github.com/validformbuilder/validformbuilder/issues)[2 PRs](https://github.com/validformbuilder/validformbuilder/pulls)LGPL-2.0PHPPHP &gt;=8.0CI passing

Since Jun 3Pushed 5mo ago3 watchersCompare

[ Source](https://github.com/validformbuilder/validformbuilder)[ Packagist](https://packagist.org/packages/validformbuilder/validformbuilder)[ Docs](http://www.validformbuilder.org/)[ RSS](/packages/validformbuilder-validformbuilder/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (59)Used By (0)

[![Documentation status](https://github.com/validformbuilder/validformbuilder/actions/workflows/generate-docs.yml/badge.svg)](https://travis-ci.org/validformbuilder/validformbuilder)[![Latest Stable Version](https://camo.githubusercontent.com/227571dae348112923f87490b84ed83770535670d08eb6e53029b658178d7fc2/68747470733a2f2f706f7365722e707567782e6f72672f76616c6964666f726d6275696c6465722f76616c6964666f726d6275696c6465722f762f737461626c652e737667)](https://packagist.org/packages/validformbuilder/validformbuilder)[![License](https://camo.githubusercontent.com/38da22f50cc2196c9ca5fc8346470d8ac0f941e5ea10c70160d0dcb004523f7a/68747470733a2f2f706f7365722e707567782e6f72672f76616c6964666f726d6275696c6465722f76616c6964666f726d6275696c6465722f6c6963656e73652e737667)](https://packagist.org/packages/validformbuilder/validformbuilder)[![A project by Neverwoods](https://camo.githubusercontent.com/1ba023230e52e99ae180daa4eedbff878bd0540280de5bf9c07b7929e70e1c9c/687474703a2f2f696d672e736869656c64732e696f2f62616467652f70726f6a6563745f62792d4e65766572776f6f64732d626c75652e737667)](http://neverwoods.com)

Quick links:
------------

[](#quick-links)

- [About](#validform-builder)
- [Installation](#installation)
- [Documentation](#user-content-documentation)
- [Examples](https://github.com/validformbuilder/validformbuilder/tree/master/examples)

ValidForm Builder
=================

[](#validform-builder)

The ValidForm Builder is a PHP and JavaScript library that simplifies the often tedious creation of standards based web forms. Correct field validation of forms is an often overlooked problem and can lead to serious security issues. Building a form and adding validation to it was never that easy.

- The API generates XHTML Strict 1.0 compliant code.
- Field validation on the client side to minimize traffic overhead.
- Field validation on the server to enforce validation rules and prevent tempering with the form through SQL injection.
- Client side validation displays inline to improve user satisfaction. No more annoying popups that don't really tell you anything.
- Creation of complex form structures.
- Uses the popular jQuery Javascript library for DOM manipulation.
- **Completely customizable** using CSS rules.
- Automatic creation of field summaries for form mailers.
- Super fast web form creation.
- Get rid of SQL injection problems.
- Create standards based CSS forms. **No tables inside.**
- Make form entry fun for the user. More feedback from your website.
- **Write client- and server-side validation at the same time**

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

[](#installation)

You're free to download the source and get started to install ValidForm Builder. Add the following to your project's `composer.json` file:

```
{
    "require": {
        "validformbuilder/validformbuilder": "~5"
    }
}

```

By [using the tilde](https://getcomposer.org/doc/01-basic-usage.md#package-versions) you'll automatically install bug fixes and new features. See [Composer documentation](https://getcomposer.org/doc/01-basic-usage.md#package-versions) for details.

Documentation
=============

[](#documentation)

You can eat get going fast with the new extensive documentation generated by PHPDoc. We've proved lots of inline documentation together with example code to get you started fast an easy.

Here are some documentation quick links:

- [The Documentation (entry point)](https://validformbuilder.org/docs/namespaces/validformbuilder.html)
- [Get started with the ValidForm object](https://validformbuilder.org/docs/classes/ValidFormBuilder-ValidForm.html)
- [Creating a checkbox / radio button list](https://validformbuilder.org/docs/classes/ValidFormBuilder-Group.html)
- [Four ways to create a `` list](https://validformbuilder.org/docs/classes/ValidFormBuilder-Select.html)
- [Create a basic text field](https://validformbuilder.org/docs/classes/ValidFormBuilder-Text.html)
- Advanced - Getting started with [Conditions](https://validformbuilder.org/docs/classes/ValidFormBuilder-Condition.html) and [Comparisons](http://validformbuilder.org/docs/classes/ValidFormBuilder-Comparison.html)
- [Match two password fields client &amp; server-side](https://validformbuilder.org/docs/classes/ValidFormBuilder-Password.html)

If you have any questions, please ask them on [stackoverflow](http://stackoverflow.com) and be sure to tag your question with the `validform` tag. We regulary monitor these questions and try to answer them as soon as we can :)

Examples
========

[](#examples)

Check out [the examples folder](https://github.com/validformbuilder/validformbuilder/tree/master/examples) for many real-live use cases for ValidForm Builder. Each snippet is ready to copy-paste into your project!

Happy coding!
-------------

[](#happy-coding)

Felix &amp; Robin

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 51.9% 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 ~69 days

Recently: every ~191 days

Total

57

Last Release

474d ago

Major Versions

v3.4.3 → v4.0.02015-12-02

v4.8.1 → v5.0.02023-01-18

PHP version history (4 changes)3.0.0PHP &gt;=5.3.0

v3.2.10PHP &gt;=5.4.0

v4.8.0PHP &gt;=7.3.0

v5.0.0PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/10745c93a6ff35107b0b988875729c9c505d2fb91e27bae6e5b0ac834914ab79?d=identicon)[flangfeldt](/maintainers/flangfeldt)

![](https://www.gravatar.com/avatar/3b2d63351cf7e273055902bec3f4da341f91a2cf2bb77693bb2f56b266a3c166?d=identicon)[rvanbaalen](/maintainers/rvanbaalen)

---

Top Contributors

[![flangfeldt](https://avatars.githubusercontent.com/u/1012764?v=4)](https://github.com/flangfeldt "flangfeldt (149 commits)")[![rvanbaalen](https://avatars.githubusercontent.com/u/220637?v=4)](https://github.com/rvanbaalen "rvanbaalen (129 commits)")[![kloostermanw](https://avatars.githubusercontent.com/u/50216197?v=4)](https://github.com/kloostermanw "kloostermanw (5 commits)")[![kaphert](https://avatars.githubusercontent.com/u/5932192?v=4)](https://github.com/kaphert "kaphert (3 commits)")[![anglinb](https://avatars.githubusercontent.com/u/2637602?v=4)](https://github.com/anglinb "anglinb (1 commits)")

---

Tags

javascript-libraryphpvalidationvalidformvalidform-buildervalidationformbuilding

### Embed Badge

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

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

###  Alternatives

[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[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)[barbieswimcrew/zip-code-validator

Constraint class for international zipcode validation

772.3M](/packages/barbieswimcrew-zip-code-validator)[fp/jsformvalidator-bundle

Javascript validation for sf\[2|3|4\] forms.

132418.8k1](/packages/fp-jsformvalidator-bundle)[apy/jsfv-bundle

Symfony2 Javascript Form Validation Bundle with localisation support

92770.5k](/packages/apy-jsfv-bundle)[laravel-lang/attributes

Translation of form element names

273.8M11](/packages/laravel-lang-attributes)

PHPackages © 2026

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