gladyshev / anticaptcha-client
Modern, convenient and full featured anti-captcha.com client library.
Installs: 4 284
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: ^8.0
- ext-json: *
- guzzlehttp/psr7: ~2.1.0
- psr/http-client: ~1.0
- psr/http-message: ~1.0
Requires (Dev)
- dg/bypass-finals: ^1.3
- guzzlehttp/guzzle: ~7.4
- overtrue/phplint: ^4.1
- phpunit/phpunit: ~9.5
- squizlabs/php_codesniffer: ^3.6
This package is auto-updated.
Last update: 2024-11-26 21:04:16 UTC
README
Powerful and easy anti-captcha.com API wrapper.
Install
$ composer require gladyshev/anticaptcha-client
or
"require": { ... "gladyshev/anticaptcha-client": "^2.0" ... }
Examples
More examples in examples folder.
$configuration = new \Anticaptcha\Configuration( getenv('__ANTICAPTCHA_KEY__') ); // PSR-18 HTTP-client $httpClient = new \GuzzleHttp\Client(); $client = new \Anticaptcha\Client( $configuration, $httpClient ); $result = $client->resolveImage(__DIR__.'/data/captcha.png'); var_dump($result->solution); /* array(2) { ["text"]=> string(14) "замочка" ["url"]=> string(43) "http://69.39.235.18/510/164683106482493.gif" } */
The library strictly follows the API documentation, so full features can be found by looking at the official documentation of the service.