This is a simple script which allows you to send secret santa emails out, ensuring everyone gets their secret santa assigned randomly, and can't get assigned themselves.
This script has been built to use PHP Mailer, which is loaded in via composer.
To install the composer dependancies, run:
bin/composer.phar install
To run, all you need to pass into the script is an array containing (a minimum of) 3 participants
$santa = new secretSanta();
$santa->run([
['name'=>'Test 1','email'=>'test1@example.com'],
['name'=>'Test 2','email'=>'test2@example.com'],
['name'=>'Test 3','email'=>'test3@example.com'],
]);
Have a look at the examples directory for more detailed examples, and extra functionality.
See the examples directory for some examples showing the different functionality of this script.