Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

larafam's avatar

how to secure php syntax for user input?

lets say i want user to write their own notification content with php syntax, how to make sure their input does not interfere with current application instead using twig.

0 likes
5 replies
larafam's avatar

currently doing that, so thats it? and im good?

anyways, tq man

larafam's avatar

@sinnbeck kinda overkill tho, already exclude twig in my question.. tq anyway :)

Sinnbeck's avatar

Oh sorry must have missed that :) Nevermind

1 like

Please or to participate in this conversation.