PHPackages                             xtreamwayz/html-form-validator - 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. xtreamwayz/html-form-validator

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

xtreamwayz/html-form-validator
==============================

A library validating and filtering submitted data by reusing html form attributes

1.6.0(4y ago)961.8k8[2 PRs](https://github.com/xtreamwayz/html-form-validator/pulls)MITPHPPHP ^7.4 || ^8.0

Since Feb 8Pushed 2y ago5 watchersCompare

[ Source](https://github.com/xtreamwayz/html-form-validator)[ Packagist](https://packagist.org/packages/xtreamwayz/html-form-validator)[ Fund](https://www.paypal.me/xtreamwayz)[ RSS](/packages/xtreamwayz-html-form-validator/feed)WikiDiscussions 1.7.x Synced yesterday

READMEChangelog (10)Dependencies (13)Versions (33)Used By (0)

[![No Maintenance Intended](https://camo.githubusercontent.com/d904056147052e22d8e1c7f46bb50293ed2aeb4c43ead9a2d0cf7a48b46d0562/687474703a2f2f756e6d61696e7461696e65642e746563682f62616467652e737667)](http://unmaintained.tech/)

Thank you so much for being interested in this project! Open Source is rewarding, but it can also be exhausting. Therefor this code is provided as-is, and is currently not actively maintained. We invite you to peruse the code and even use it in your next project, provided you follow the included license!

No guarantee of support for the code is provided, and there is no promise that pull requests will be reviewed or merged. It’s open source, so forking is allowed; just be sure to give credit where it’s due!

---

As challenged by a [tweet](https://twitter.com/Ocramius/status/680817040429592576), this library extracts validation rules and filters from a html form and validates submitted user data against it.

It's pretty crazy what you have to do to get a form build in frameworks. Create a lot of php classes for elements, validation, etc. So why not build a html form and use the standard element attributes to extract the validation rules and filters. Together with some powerful html compliant data attributes you can create forms, customize validation rules and filters in one place.

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

[](#installation)

```
$ composer require xtreamwayz/html-form-validator
```

Documentation
-------------

[](#documentation)

All project documentation is located in the [./docs](./docs) folder. If you would like to contribute to the documentation, please submit a pull request. You can read the docs online:

Contributing
------------

[](#contributing)

***BEFORE you start work on a feature or fix***, please read &amp; follow the [contributing guidelines](https://github.com/xtreamwayz/.github/blob/master/CONTRIBUTING.md#contributing)to help avoid any wasted or duplicate effort.

Copyright and license
---------------------

[](#copyright-and-license)

Code released under the [MIT License](https://github.com/xtreamwayz/.github/blob/master/LICENSE.md). Documentation distributed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 97.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 ~113 days

Recently: every ~317 days

Total

28

Last Release

741d ago

Major Versions

0.9.0 → 1.0.02018-03-19

PHP version history (5 changes)0.1.0PHP ^7.0

0.9.0PHP ^5.6 || ^7.0

1.0.0PHP ^7.1

1.4.0PHP ^7.3 || ^8.0

1.6.0PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5884735f970aea7052f8a5323f5c0b30e4b9efbe948bac9371b1fc0db1dfe4cc?d=identicon)[geerteltink](/maintainers/geerteltink)

---

Top Contributors

[![geerteltink](https://avatars.githubusercontent.com/u/9497586?v=4)](https://github.com/geerteltink "geerteltink (427 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")[![samsonasik](https://avatars.githubusercontent.com/u/459648?v=4)](https://github.com/samsonasik "samsonasik (2 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")

---

Tags

filtershtml-formsphpvalidators

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/xtreamwayz-html-form-validator/health.svg)

```
[![Health](https://phpackages.com/badges/xtreamwayz-html-form-validator/health.svg)](https://phpackages.com/packages/xtreamwayz-html-form-validator)
```

###  Alternatives

[magento/community-edition

Magento 2 (Open Source)

12.1k53.0k12](/packages/magento-community-edition)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[symfony/symfony

The Symfony PHP framework

31.4k86.9M2.2k](/packages/symfony-symfony)[laminas/laminas-validator

Validation classes for a wide range of domains, and the ability to chain validators to create complex validation criteria

15848.2M212](/packages/laminas-laminas-validator)[cakephp/cakephp

The CakePHP framework

8.8k19.1M1.7k](/packages/cakephp-cakephp)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)

PHPackages © 2026

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