How to? timed latch release

I want to make a box with seperate compartments with doors that will open to release a dog toy, treat etc. at timed intervals. I don't know how to use a timer to unlatch a door. Ideas? thanks - SpleenMa