gladyshev / anticaptcha-client

#1
c545df3fa9[1].png

Powerful and easy anti-captcha.com API wrapper.

Install
Code:
$ composer require gladyshev/anticaptcha-client
or
"require": {
  ...
  "gladyshev/anticaptcha-client": "*"
  ...
}
Examples
More examples in examples folder.
Code:
$client = new \Anticaptcha\Client('YOUR_API_KEY', ['languagePool' => 'en']));

$taskId = $client->createTaskByImage(__DIR__.'/data/yandex.gif');
$result = $client->getTaskResult($taskId);
$result->await(); // Waiting for completion of solution.

var_dump($result->getSolution()->getText()); // string(14)
The library strictly follows the API documentation, so full features can be found by looking at the official documentation of the service.