Emoji flag in the Symfony CountryType

Smaine Milianni
2 min readJan 30, 2022

🔥 Emojis are part of our way of communicating, what about adding them to your Symfony form when a user needs to select a country, something like:

It’s easy to create an emoji from the ISO country code, check this comment.

TL;DR: In PHP the code is

Smaine Milianni

Fullstack Developer- certified Symfony 4,5 and certified AWS Solution Architect - Freelancer - Remote Worker