PHPackages                             guillegf/secret-santa - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. guillegf/secret-santa

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

guillegf/secret-santa
=====================

Secret Santa game in PHP

1.3.1(8y ago)2941MITPHP

Since Oct 30Pushed 7y ago2 watchersCompare

[ Source](https://github.com/GuilleGF/SecretSantaPHP)[ Packagist](https://packagist.org/packages/guillegf/secret-santa)[ Docs](https://github.com/GuilleGF/SecretSantaPHP)[ RSS](/packages/guillegf-secret-santa/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)Dependencies (2)Versions (12)Used By (0)

SecretSantaPHP
==============

[](#secretsantaphp)

[![Build Status](https://camo.githubusercontent.com/293adc5ee2a38bfa99108bde11d863ed14b231067892229c948b1efccd259a10/68747470733a2f2f7472617669732d63692e6f72672f4775696c6c6547462f53656372657453616e74615048502e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/GuilleGF/SecretSantaPHP)[![Code Coverage](https://camo.githubusercontent.com/7e05758041343059d3c1e49265af761c9a051b43be36fbed908a156a26c57131/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4775696c6c6547462f53656372657453616e74615048502f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/GuilleGF/SecretSantaPHP/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/b001ab427667d17ad1b102d724fc6be025de2fff96c68b7b7f19d358134123b3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4775696c6c6547462f53656372657453616e74615048502f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/GuilleGF/SecretSantaPHP/?branch=master)[![Dependency Status](https://camo.githubusercontent.com/81383cd7d2935572067600b99d5663d05d68dee93a4a8c09def4b21d026af30e/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3538323161653064383966306139316435356562393630302f62616467652e737667)](https://www.versioneye.com/user/projects/5821ae0d89f0a91d55eb9600)[![Latest Stable Version](https://camo.githubusercontent.com/20a57a3984bd3feafc47582aefd13342051f1482a72b178e2c73c285bbcfd4b0/68747470733a2f2f706f7365722e707567782e6f72672f6775696c6c6567662f7365637265742d73616e74612f762f737461626c65)](https://packagist.org/packages/guillegf/secret-santa)[![Total Downloads](https://camo.githubusercontent.com/96aabcf028eaac6cc997849bdbaf087812b522f38703bd5eec2b4791dcc59c93/68747470733a2f2f706f7365722e707567782e6f72672f6775696c6c6567662f7365637265742d73616e74612f646f776e6c6f616473)](https://packagist.org/packages/guillegf/secret-santa)[![License](https://camo.githubusercontent.com/437337c53967e9055fef8a9ae14592e7766c2e8628bce4d7a4e1c64e15706469/68747470733a2f2f706f7365722e707567782e6f72672f6775696c6c6567662f7365637265742d73616e74612f6c6963656e7365)](https://packagist.org/packages/guillegf/secret-santa)

- Repository:
- Version: 1.3.0
- License: MIT, see [LICENSE](LICENSE)

Description
-----------

[](#description)

Secret Santa game in PHP

Installation
------------

[](#installation)

### Composer (Recommended)

[](#composer-recommended)

[Composer](https://getcomposer.org/) is a widely used dependency manager for PHP packages. Is available on Packagist as [`guillegf/secret-santa`](https://packagist.org/packages/guillegf/secret-santa) and can be installed either by running the `composer require` command or adding the library to your `composer.json`. To enable Composer for you project, refer to the project's [Getting Started](https://getcomposer.org/doc/00-intro.md)documentation.

To add this dependency using the command, run the following from within your project directory:

```
composer require guillegf/secret-santa "~1.3"

```

Alternatively, add the dependency directly to your `composer.json` file:

```
"require": {
    "guillegf/secret-santa": "~1.3"
}
```

Usage
-----

[](#usage)

In this example in total we add 10 players, 2 singles players, 2 couples (exclusive) and 4 exclusive players.

**The couples and exclusive players never match together.**

```
