Skip to content

nickedwards/PHP-Secret-Santa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A simple PHP Secret Santa Script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages