We use Faucet in a Box script under GNU General Public License, we modified a lot of the script so the script can connect to our website.
Download it here faucetinabox-r69.zip (Modified Version UNDER GNU General Public License).
PHP 5.4 or newer, including:
PDO + MySQL modules
OpenSSL 1.0.0 or newer
MySQL server