Skip to content
PHP form validation extracted from HTML forms. Write forms and validation once in the same place!
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs docs: update versions Nov 8, 2019
src Add support for html form checkbox arrays Jul 27, 2019
test Add support for html form checkbox arrays Jul 27, 2019
.gitignore Fix line endings ??? Oct 7, 2016 Code and coding style improvements Mar 17, 2018 docs: update documentation Nov 8, 2019
composer.json Bump version Jul 27, 2019
config.yml docs: update versions Nov 8, 2019


Docs Status Build Status Downloads Packagist

As challenged by a tweet, 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.


$ composer require xtreamwayz/html-form-validator


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


BEFORE you start work on a feature or fix, please read & follow the contributing guidelines to help avoid any wasted or duplicate effort.

Copyright and license

Code released under the MIT License. Documentation distributed under CC BY 4.0.

You can’t perform that action at this time.