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 chili flakes if using.
Grease a 6 muffin tray with oil or butter, and fill the muffin tin with evenly divided broccoli, ham, and grated cheese. Pour the beaten eggs into the muffin tin and bake in the oven for 10-15 minutes, or until eggs have set.