PHP code example of firdavs / faucetpay

1. Go to this page and download the library: Download firdavs/faucetpay library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

firdavs / faucetpay example snippets


use Firdavs\Faucetpay;

$faucetpay = new Faucetpay();

$balance = $faucetpay->getBalance();

$balance = $faucetpay->getBalance('ETH');

$currencies = $faucetpay->currencies();

$address = '...'; // Replace with the address you want to check
$result = $faucetpay->checkAddress($address);

$address = '...'; // Replace with the address you want to send to
$amount = 0.001; // Replace with the amount you want to send
$result = $faucetpay->send($address, $amount);

$result = $faucetpay->send($address, $amount, 'ETH');

$transactions = $faucetpay->recent($count = 10, $cripto = '');

php artisan vendor:publish --provider="Firdavs\FaucetPackageServiceProvider" --tag="config"