Preheat the oven to 360°F (180°C).
Place the broccoli in a pot of boiling water and cook for approx. 3 minutes. Strain and cut into small pieces.
Beat the eggs in a medium size bowl, add the minced garlic and season with salt and pepper, and chilli flakes if using.
Grease a 6-mould muffin tray with oil or butter, and fill the moulds with evenly divided broccoli, ham, and grated cheese. Pour the beaten eggs into the moulds and bake in the oven for 10-15 minutes, or until eggs have set.