Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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!

Awesome Lists containing this project

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/).