I'm looking for a #PHP library for form validation. Any good one to recommend?
The goal is to use the same across multiple projects supported by different PHP frameworks.
=> More informations about this toot | More toots from meduz@m.nintendojo.fr
@meduz Respect Validation is pretty good, and framework agnostic.
https://github.com/Respect/Validation
=> More informations about this toot | More toots from cedx@mastodon.social
@meduz have a Look at the https://symfony.com/doc/current/components/validator.html you can use it die your stis regardless of framework
=> More informations about this toot | More toots from psycodepath@mastodon.social
@meduz https://doc.nette.org/en/forms
=> More informations about this toot | More toots from JanDrabek@witter.cz
@meduz Symfony's Validator component can be used on its own outside the framework. Not sure if it's 100% what you're looking for, but seems like it might at least be a promising candidate.
https://symfony.com/doc/current/components/validator.html
=> More informations about this toot | More toots from jalefkowit@vmst.io
@meduz I have not use either of them, but these two look pretty good (besides Symfony’s and Laravel’s):
https://github.com/particle-php/Validator
https://github.com/Respect/Validation
Lately, I have been using a combination of a datamapper (cuyz/valinor), with custom Value Objects and Symfony’s validator component (not the form one).
I explain it here: https://dev.to/rubenrubiob/clean-controllers-in-symfony-iii-request-handling-3h79
It is specific for Symfony, but it could be applied to other frameworks.
=> More informations about this toot | More toots from rubenrubiob@phpc.social This content has been proxied by September (ba2dc).Proxy Information
text/gemini