Life with 🐘 🐳 🐧 πŸ’»

Follow @DennisdeBest

PHP 8.1 Enums, Doctrine and Symfony EnumType

PHP 8.1 added Enums, this allows us to set a defined number of possible values for an array. It is a very interesting way of making sure only the values we want can be to a specific value.

So I started to play around with them, A while back and ran into a few issues with Doctrine and the Symfon...

Continue reading

Creating a HoneyPot to avoid Spam in Symfony Forms

On one of the sites I have set up with a contact form there started to get quite a few automated spam messages.

To avoid this I could add something like reCaptcha but first I'll try to take care of this on my own and not add more Google stuff to the page.

My form was pretty simple :

public...

Continue reading