xtreamwayz / html-form-validator
A library validating and filtering submitted data by reusing html form attributes
Fund package maintenance!
www.paypal.me/xtreamwayz
Installs: 1 736
Dependents: 0
Suggesters: 0
Security: 0
Stars: 96
Watchers: 6
Forks: 9
Open Issues: 2
Requires
- php: ^7.4 || ^8.0
- ext-dom: *
- ext-libxml: *
- laminas/laminas-filter: ^2.13
- laminas/laminas-i18n: ^2.13
- laminas/laminas-inputfilter: ^2.13
- laminas/laminas-servicemanager: ^3.10
- laminas/laminas-stdlib: ^3.6
- laminas/laminas-uri: ^2.9
- laminas/laminas-validator: ^2.15
- psr/container: ^1.0 || ^2.0
- psr/http-message: ^1.0
Requires (Dev)
- laminas/laminas-coding-standard: ^2.3
- phpspec/prophecy-phpunit: ^2.0
- phpstan/phpstan: ^1.2
- phpunit/phpunit: ^9.5
Suggests
- laminas/laminas-servicemanager: To support third-party validators and filters
- 1.7.x-dev
- 1.6.x-dev
- 1.6.0
- 1.5.x-dev
- 1.5.0
- 1.4.x-dev
- 1.4.1
- 1.4.0
- 1.3.x-dev
- 1.3.1
- 1.3.0
- 1.2.x-dev
- 1.2.1
- 1.2.0
- 1.1.1
- 1.1.0
- 1.0.1
- 1.0.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.1
- 0.1.0
- dev-dependabot/github_actions/actions/checkout-4
- dev-dependabot/github_actions/actions/github-script-7
- dev-geerteltink-patch-1
- dev-dependabot/composer/psr/http-message-tw-1.0or-tw-2.0
- dev-ci/codacy
This package is auto-updated.
Last update: 2024-06-19 11:23:42 UTC
README
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, 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
$ composer require xtreamwayz/html-form-validator
Documentation
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: https://xtreamwayz.github.io/html-form-validator/
Contributing
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.