2017 © Pedro Peláez
 

library anti-captcha

Wrapper for anti-captcha service

image

majesko/anti-captcha

Wrapper for anti-captcha service

  • Monday, May 29, 2017
  • by Majesko
  • Repository
  • 2 Watchers
  • 2 Stars
  • 143 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 120 % Grown

The README.md

PHP Library for solving captcha using anti-captcha service (https://anti-captcha.com)

note: for using library you need to be registered in anti-captcha service and have positive balance, (*1)

Installation and usage

#install library with composer
php composer.phar require majesko/anti-captcha

Next init Anti-captcha client with api key from anti-captcha, (*2)

$client = new \AntiCaptcha\Client('enter api key here');

Prepare captcha image in base64 format using helper method from url, (*3)

$image = $client->image_url_to_base64('http://url-to-captcha-image');

Create new captcha solving task, (*4)

$task = new \AntiCaptcha\Tasks\ImageToTextTask($image);

Send task to Anti-captcha, (*5)

$taskResponse = $client->createTask($task);

Check captcha status, (*6)

$status = $client->getTaskResult($taskResponse->getTaskId());

If captcha was solved (it takes ~30 seconds - depends on settings and difficulty) get solution, (*7)

$solution = $status->getSolution();
$solution->getText(); // this is solved captcha string

For more information refer to anti-captcha docs: https://anticaptcha.atlassian.net/wiki/display/API/API+v.2+Documentation, (*8)

The Versions

29/05 2017

dev-master

9999999-dev

Wrapper for anti-captcha service

  Sources   Download

The Requires

 

The Development Requires

by Avatar Majesko

29/05 2017

1.1.0

1.1.0.0

Wrapper for anti-captcha service

  Sources   Download

The Requires

 

The Development Requires

by Avatar Majesko

28/05 2017

1.0.1

1.0.1.0

Wrapper for anti-captcha service

  Sources   Download

The Requires

 

The Development Requires

by Avatar Majesko

28/05 2017

1.0.0

1.0.0.0

Wrapper for anti-captcha service

  Sources   Download

The Requires

 

The Development Requires

by Avatar Majesko