About two years ago the occasion arose for a Secret Santa with people who, for whatever reason, couldn’t find themselves in the same room to draw names from a hat. Determined, I soldiered on and wrote a script to email all parties with a randomly selected name. It worked, it drives a slow trickle of traffic to the site every December.
I decided to give it a bit of an OOP makeover this year and go ALL-OUT and get in on the git action, too. What I have ended up with is bizarrely tacked-on front-end to an otherwise super straightforward SecretSantaBot class.
I’m going to set up a site in the future to forgo the need to have a web server in order to use the script. That’s not as fun, eh? For now, it’s targeted at the developer.
Oh, I should mention that before you ream me — this is the first PHP class I’ve written, and I’m sure it’s not the most optimally written thing out there. That’s what forking is for! Forking and reaming in the same sentence …





