Ancestors

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

Toot

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

Descendants

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

This content has been proxied by September (3851b).