Commit graph

73 commits

Author SHA1 Message Date
Oliver Davies 5aa1f79279 Refactor to a UseCase and some value objects 2020-05-22 22:27:46 +01:00
Oliver Davies ba75e22439 Show the photo URL if the winner has one 2020-05-22 21:51:52 +01:00
Oliver Davies dab1f156e3 Ensure that organisers are excluded 2020-05-22 21:51:49 +01:00
Oliver Davies 3bffa3cdd6
Create LICENSE 2020-05-10 16:05:24 +01:00
Oliver Davies 5a2f82885d Remove blank line 2020-05-05 10:40:33 +01:00
Oliver Davies 72c4c2af78 Remove dependency on illuminate/support 2020-05-05 10:34:35 +01:00
Oliver Davies 6ef4cb5ee0 Add Makefile, use in GitHub Actions 2020-05-05 10:23:49 +01:00
Oliver Davies 7a5a1871df Remove docblocks 2020-05-05 10:23:49 +01:00
Oliver Davies 9b58af3a62 Use PHP 7.4 typed properties
Fixes #8
2020-05-05 10:23:49 +01:00
Oliver Davies 2e0ec011f2 Remove sleep 2020-05-05 10:02:47 +01:00
Oliver Davies b18a9ba3c9 Add a GitHub Actions workflow for PHPCS
Ensure that the code matches the PSR-12 coding standards by
automatically running PHPCS for each push and pull request.

Fixes #5
2020-05-01 02:13:51 +01:00
Oliver Davies 08d9465cf0 Add event URL 2020-04-30 22:59:18 +01:00
Oliver Davies 3d2290c194 Fix coding standards problems
Fixes #4
2020-04-30 00:22:00 +01:00
Oliver Davies d577510355 Add phpcs
References #4
2020-04-30 00:21:23 +01:00
Oliver Davies 71d3314a8e Make the command final, enable strict types 2020-04-29 23:57:45 +01:00
Oliver Davies c188676033 Exclude event hosts
Automatically filter event hosts (i.e. organisers) from the RSVP list so
that they aren't potentially returned as winners.

Fixes #2
2020-04-29 23:54:16 +01:00
Oliver Davies 3ad31b95b0 Use the event name in the title
Retrieve the event data from Meetup, and build the title from the meetup
name and the event name.
2020-04-29 23:34:50 +01:00
Oliver Davies 48aa11b38e Display all yes RSVP names 2020-04-29 23:18:51 +01:00
Oliver Davies 371ea1310b Add README.md 2020-04-29 23:01:58 +01:00
Oliver Davies d3f962e19c Cache RSVPs from Meetup per event
Introduce the Cache component and use a filesystem adapter to cache the
results from the query to the Meetup API.

This will prevent duplicate API calls being made if we need to run it
multiple times in a short space of time - i.e. if we want to pick more
than one winner during the same event.

Fixes #1.
2020-04-29 22:25:35 +01:00
Oliver Davies f823514a73 Add GetRaffleWinnerCommand 2020-04-29 22:23:44 +01:00
Oliver Davies 870c58b23a Add dependencies 2020-04-29 21:24:19 +01:00
Oliver Davies 9f3b94b2c4 Add initial set of files 2020-04-29 20:20:38 +01:00