Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xtreamwayz/html-form-validator
PHP form validation extracted from HTML forms. Write forms and validation once in the same place!
https://github.com/xtreamwayz/html-form-validator
filters html-forms php validators
Last synced: 10 days ago
JSON representation
PHP form validation extracted from HTML forms. Write forms and validation once in the same place!
- Host: GitHub
- URL: https://github.com/xtreamwayz/html-form-validator
- Owner: xtreamwayz
- License: mit
- Created: 2015-12-28T18:19:41.000Z (almost 9 years ago)
- Default Branch: 1.7.x
- Last Pushed: 2023-05-05T15:04:12.000Z (over 1 year ago)
- Last Synced: 2024-04-24T06:21:06.480Z (7 months ago)
- Topics: filters, html-forms, php, validators
- Language: PHP
- Homepage: https://xtreamwayz.github.io/html-form-validator/
- Size: 524 KB
- Stars: 97
- Watchers: 6
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- favorite-link - 从 HTML 表单中提取的 PHP 表单验证。在同一个地方写一次表格和验证!
README
[![No Maintenance Intended](http://unmaintained.tech/badge.svg)](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
```bash
$ composer require xtreamwayz/html-form-validator
```## 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:
https://xtreamwayz.github.io/html-form-validator/## Contributing
**_BEFORE you start work on a feature or fix_**, please read & 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
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/).