{"id":19959736,"url":"https://github.com/maxlen/anticaptcha","last_synced_at":"2025-06-18T07:37:47.522Z","repository":{"id":62525674,"uuid":"73733701","full_name":"maxlen/anticaptcha","owner":"maxlen","description":"Wrapper for anti-captcha.com","archived":false,"fork":false,"pushed_at":"2017-01-05T13:51:08.000Z","size":20,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-12T14:18:26.022Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxlen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-14T18:16:33.000Z","updated_at":"2016-11-20T14:32:42.000Z","dependencies_parsed_at":"2022-11-02T14:15:53.467Z","dependency_job_id":null,"html_url":"https://github.com/maxlen/anticaptcha","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxlen%2Fanticaptcha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxlen%2Fanticaptcha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxlen%2Fanticaptcha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxlen%2Fanticaptcha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxlen","download_url":"https://codeload.github.com/maxlen/anticaptcha/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241390204,"owners_count":19955278,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T01:51:19.913Z","updated_at":"2025-03-01T16:22:00.793Z","avatar_url":"https://github.com/maxlen.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# anticaptcha-php\n\nWrapper for anti-captcha.com\n\n## Installation:\n```php\ncomposer require maxlen/anticaptcha\n```\n\n### Use for captcha ImageToText:\n\n```php\n$resCaptcha = new CaptchaService(\n    $apiKey, // your apiKey from anti-captcha.com\n    CaptchaService::TYPE_IMAGE_TO_TEXT,\n    ['imgPath' =\u003e '/home/user/example.png'] // path to captcha image\n);\n\necho $resCaptcha-\u003echeck(); // text-result\n\n// or\n\n$resCaptcha-\u003echeck();\necho $resCaptcha-\u003ehashResult; // text-result\n```\n\n### Use for reCaptcha:\n\n```php\n// $html - it's html-code from $url\n// $html = file_get_contents($url) or something like that\n\nif (Captcha::isCaptcha($html)) {\n    $html = self::CaptchaProc($url, $html);\n    die('CAPTCHA RESOLVED');\n}\n\nprivate function CaptchaProc($url, $html)\n{\n    $resCaptcha = new CaptchaService(\n        $apiKey, // your apiKey from anti-captcha.com\n        CaptchaService::TYPE_NO_CAPTCHA_PROXYLESS,\n        [\n            'webSiteUrl' =\u003e $url,\n            'html' =\u003e $html,\n        ]\n    );\n\n//        echo PHP_EOL . \"getWebSiteKey: \" . $resCaptcha-\u003egetWebSiteKey();\n//        echo PHP_EOL . \"getWebSiteSToken: \" . $resCaptcha-\u003egetWebSiteSToken();\n//        echo PHP_EOL;\n//        var_dump($resCaptcha-\u003egetResolveGetParams());\n\n    if (!$resCaptcha-\u003echeck()) {\n        return false;\n    }\n\n    $resolveUrl = $url . '\u0026g-recaptcha-response=' . $resCaptcha-\u003ehashResult;\n    return file_get_contents($resolveUrl); // curl or something like that\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxlen%2Fanticaptcha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxlen%2Fanticaptcha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxlen%2Fanticaptcha/lists"}