A little tool for selecting a random Joind.in event or talk comment from a range of events by hashtag, loosely based on @asgrim's joindin-random-feedback-selector.
PHPSW use this to select winners of their monthly raffle which attendees can enter by giving feedback on their last event or the latest set of videos of the website (i.e. the last 2 events).
- PHP 5.4+
- Composer
git clone [email protected]:phpsw/joindin-winner-picker.git
composer install
./pick.php <tag> [<start date>] [<end date>]
In September 2015, we ran our first raffle and let our attendees feedback on any of our previous events to enter:
./app.php pick:pick phpsw 2015-01-01
Joind.in Winner Picker!
Selecting from #phpsw events between 2015-01-01 and 2015-08-31
PHPSW: Testing, August 2015
- ...comments
PHPSW: eCommerce, July 2015
- ...comments
PHPSW: Coding Practices, June 2015
- ...comments
PHPSW: Frameworks, May 2015
- ...comments
PHPSW: Lightning Talks, April 2015
- ...comments
And the winner is...
- Roy - Great event, interesting talks and good atmosphere, my first time in attendance at PHPSW and will not be my last.
- http://api.joind.in/v2.1/event_comments/1650
- Uses events between the
first day of last month
andlast day of this month
by default - Includes both event and talk comments
- Excludes hosts, hosts can't win :(