druidvav / antigate-client
Lightweight client for Antigate service
Installs: 4 559
Dependents: 1
Suggesters: 0
Security: 0
Stars: 8
Watchers: 3
Forks: 2
Open Issues: 0
Requires
- php: >=7.0.0
- guzzlehttp/guzzle: ~6.1
This package is auto-updated.
Last update: 2024-11-10 04:53:21 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());