PHP code example of bubnov / php-antigate-client

1. Go to this page and download the library: Download bubnov/php-antigate-client 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/ */

    

bubnov / php-antigate-client example snippets



ent = new NekoWeb\AntigateClient();
$client->setApiKey('--YOUR-KEY--');

// Solve from file
file_put_contents('tmp.jpg', file_get_contents('--CAPTCHA-URL--'));
echo $client->recognizeByFilename('tmp.jpg');

// Solve from URL
echo $client->recognizeByUrl('--CAPTCHA-URL--');

// Return Antigate balance
echo $client->getBalance();

// Return your usage statistics for a date
print_r($client->getStatistic('2014-04-11'));

// Return realtime Antigate statistics
print_r($client->getRealtimeStatistic());