Can I compost...
Garlic?
Yes.
Garlic is fine in a compost heap but best avoided in large quantities in a wormery (the worms don't like garlic breath in case they run into other worms they fancy...).
The main problem with composting garlic is its tendency for whole cloves/bulbs to re-sprout. Chop them up first to avoid that - or don't compost them, plant them out instead to grow more garlic bulbs.
Some hints on how to best achieve that - and some other uses for 'off' garlic are listed on the Recycle This page about the delicious substance.
In category Vegetables