International PHP Conference
The Conference for PHP and Web Development

The missing validation middleware

Session
Until the conference starts:
✓ Arduino Starter Kit or Amazon Echo Dot for free
✓ Group discount
✓ 2 in 1 conference special
Register now
Bis Konferenz­beginn:
✓ Arduino Starter Kit oder Amazon Echo Dot gratis
✓ Kollegenrabatt
✓ 2-in-1-Konferenzpaket
Jetzt anmelden
Until conference starts:
✓ 2-in-1 conference package
✓ Group discount
✓ Extra specials for freelancers
Register now
Bis Konferenzbeginn:
✓ 5-Tages-Special
✓ Kollegenrabatt
✓ Special Discount für Freelancer
Jetzt anmelden
Infos
Tuesday, May 31 2022
10:45 - 11:30

In most web applications today, we need to validate the data submitted. It can be through an API endpoint, a CSV line to import, a form, or anything that will be injected in the app. Since the latest PHP versions, we have more and more tools to improve type hinting in our code. There are multiple input validation methods. In France, we use the symfony/validator package a lot. However, those packages don’t validate the data at the right time. We need to build objects that may contain invalid data and then we apply some rules and retrieve the errors. This means that those objects must allow an invalid internal state. It’s not a really good approach to write solid code. Is there another solution? Of course, you can validate the data before building the object. Let’s dive into Valinor: a tiny library that will let you remove a lot of boilerplate code but still keep your application solid!

Take me to the full program of Zum vollständigen Programm von Berlin Berlin .

This Session belongs to the Diese Session gehört zum Programm vom BerlinBerlin program. Take me to the program of . Hier geht es zum Programm von Munich München .

This Session Diese Session belongs to the gehört zum Programm von BerlinBerlin program. Take me to the current program of . Hier geht es zum aktuellen Programm von Berlin Berlin or oder Munich München .

Stay tuned!

Behind the Tracks of IPC

PHP Core & Coding
Best practices & applications

General Web Development
Broader web development topics

DevOps & Continuous Delivery
Learn about DevOps and transform your development pipeline

Software Architecture
All about PHP frameworks, concepts &
environments

Web Security
All about
web security

Software Quality
More about software testing tools &
strategies

Agile & Company Culture
Getting agile right is so important

Content Management Systems
Sessions on content management systems

#slideless (pure coding)
See how technology really works