konrness / instant-win
PHP class for randomly awarding a fixed amount of instant-win over a set period of time.
0.2
2015-03-25 21:13 UTC
Requires
- php: >=5.3.0
Requires (Dev)
- jlogsdon/cli: *
- pdepend/pdepend: ~1.1
- pear/archive_tar: ~1.3
- phing/phing: ~2.8
- phpdocumentor/phpdocumentor: ~2.6
- phploc/phploc: ~2.0
- phpmd/phpmd: ~1.5
- phpunit/phpunit: ~4.1
- sebastian/phpcpd: ~2.0
- squizlabs/php_codesniffer: ~1.5
This package is not auto-updated.
Last update: 2025-03-01 17:49:47 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.