Step1: Download this file and upload it to the same folder with the file which will proccess the payout
https://faucethub.io/phplib/downloadStep2: Add :
include 'faucethub.php';
$api_key = "YOUR_API_KEY";
$currency = "BTC"; # or LTC or any other supported by FaucetHub
$faucethub = new FaucetHub($api_key, $currency);
$result = $faucethub->send("1asdbitcoinaddressheredsa", 500);
if($result["success"] === true) { # you can check if it was successful
#update user's balance and echo $result["html"]; # there's example html ready for you
} else { # something went wrong :(
log_error($result["response"]); # you can log whole response from server
echo $result["html"]; # and display error message to user
}