konrness/instant-win

PHP class for randomly awarding a fixed amount of instant-win over a set period of time.

Installs: 134

Dependents: 0

Suggesters: 0

Security: 0

Stars: 7

Watchers: 3

Forks: 3

Open Issues: 0

pkg:composer/konrness/instant-win

0.2 2015-03-25 21:13 UTC

This package is not auto-updated.

Last update: 2025-09-27 20:24:16 UTC


README

PHP class for randomly awarding a fixed amount of instant-wins over a set period of time.

Usage

See scripts/example-daily.php for an example of how to award 10 instant-wins each day (midnight to midnight), even when the number of instant-win attempts is variable or unknown.

$ ./scripts/example-daily.php
You won!!!
$ ./scripts/example-daily.php
Sorry, you did not win.