Ancestors

Toot

Written by meduz' on 2024-12-23 at 15:07

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

Descendants

Written by Cédric Belin on 2024-12-23 at 15:12

@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

Written by Psycodepath on 2024-12-23 at 15:26

@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

Written by Jan Drábek on 2024-12-23 at 17:35

@meduz https://doc.nette.org/en/forms

=> More informations about this toot | More toots from JanDrabek@witter.cz

Written by Jason Lefkowitz on 2024-12-23 at 21:07

@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

Written by Rubén Rubio on 2024-12-23 at 21:24

@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

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113702760745417786
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
297.426325 milliseconds
Gemini-to-HTML Time
0.846338 milliseconds

This content has been proxied by September (ba2dc).