Secret Santa Software

Does anyone know of some online (PHP hopefully) software that lets users login and do the Secret Santa thing? I found one website (drawnames.com), but I’d rather host it myself. Ideally, all users would sign in at a given time and through the use of Javascipt, each could take a turn drawing names out of a hat and the others would see the results live. In my head, I’m imagining how the Fantasy Sports drafts work – surely theres something like this out there – I just haven’t hit the correct keywords yet on Google I guess.