Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 1.11 KB

File metadata and controls

24 lines (17 loc) · 1.11 KB

Secret Santa

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.

Dependancies / Installation

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

Basic Usage

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.

Examples

See the examples directory for some examples showing the different functionality of this script.