bubnov / php-antigate-client
Lightweight client for Antigate service upgraded by Bubnov
1.0.0
2017-01-23 07:47 UTC
Requires
- php: >=5.3.0
- kriswallsmith/buzz: *
This package is not auto-updated.
Last update: 2025-01-27 16:47:34 UTC
README
Usage examples
<?php require_once 'vendor/autoload.php'; $client = 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());