druidvav / antigate-client
Antigate服务的轻量级客户端
v1.0.2
2019-02-14 08:37 UTC
Requires
- php: >=7.0.0
- guzzlehttp/guzzle: ~6.1
This package is auto-updated.
Last update: 2024-09-10 04:17:46 UTC
README
使用示例
<?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());