{"id":20050150,"url":"https://github.com/2captcha/2captcha-php","last_synced_at":"2025-05-16T01:06:53.105Z","repository":{"id":46052048,"uuid":"264192810","full_name":"2captcha/2captcha-php","owner":"2captcha","description":"PHP package for easy integration with the API of 2captcha captcha solving service to bypass recaptcha, funcaptcha, Cloudflare turnstile, geetest and solve any other captchas.","archived":false,"fork":false,"pushed_at":"2024-12-06T02:26:04.000Z","size":430,"stargazers_count":79,"open_issues_count":3,"forks_count":48,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-10T07:37:16.302Z","etag":null,"topics":["2captcha","anti-captcha","anticaptcha","bypass-invisible-recaptcha","bypass-on-captcha-recaptcha","bypass-recaptcha-v2","bypasscaptcha","captcha-breaking","captcha-bypass","captcha-recognition","captcha-services-for-recaptcha-v2","captcha-solver","captcha-solving","cloudflare-turnstile-solver","deathbycaptcha","google-recaptcha-solver","recaptcha-solver","recaptcha-solver-php","recaptcha-v2-captcha-solver"],"latest_commit_sha":null,"homepage":"https://2captcha.com","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/2captcha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-15T12:52:49.000Z","updated_at":"2025-04-14T08:42:40.000Z","dependencies_parsed_at":"2024-06-18T19:45:10.366Z","dependency_job_id":"83baa55e-6612-4971-b5cc-7dee8ae0dcc3","html_url":"https://github.com/2captcha/2captcha-php","commit_stats":{"total_commits":56,"total_committers":5,"mean_commits":11.2,"dds":0.5,"last_synced_commit":"8dfbf4b176ab2f9cb79c5072042def294e9c4a0b"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2captcha%2F2captcha-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2captcha%2F2captcha-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2captcha%2F2captcha-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2captcha%2F2captcha-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2captcha","download_url":"https://codeload.github.com/2captcha/2captcha-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254448579,"owners_count":22072764,"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":["2captcha","anti-captcha","anticaptcha","bypass-invisible-recaptcha","bypass-on-captcha-recaptcha","bypass-recaptcha-v2","bypasscaptcha","captcha-breaking","captcha-bypass","captcha-recognition","captcha-services-for-recaptcha-v2","captcha-solver","captcha-solving","cloudflare-turnstile-solver","deathbycaptcha","google-recaptcha-solver","recaptcha-solver","recaptcha-solver-php","recaptcha-v2-captcha-solver"],"created_at":"2024-11-13T11:54:35.812Z","updated_at":"2025-05-16T01:06:48.095Z","avatar_url":"https://github.com/2captcha.png","language":"PHP","readme":"\u003ca href=\"https://github.com/2captcha/2captcha-python\"\u003e\u003cimg src=\"https://github.com/user-attachments/assets/37e1d860-033b-4cf3-a158-468fc6b4debc\" width=\"82\" height=\"30\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/2captcha/2captcha-javascript\"\u003e\u003cimg src=\"https://github.com/user-attachments/assets/4d3b4541-34b2-4ed2-a687-d694ce67e5a6\" width=\"36\" height=\"30\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/2captcha/2captcha-go\"\u003e\u003cimg src=\"https://github.com/user-attachments/assets/ab22182e-6cb2-41fa-91f4-d5e89c6d7c6f\" width=\"63\" height=\"30\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/2captcha/2captcha-ruby\"\u003e\u003cimg src=\"https://github.com/user-attachments/assets/0270d56f-79b0-4c95-9b09-4de89579914b\" width=\"75\" height=\"30\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/2captcha/2captcha-cpp\"\u003e\u003cimg src=\"https://github.com/user-attachments/assets/36de8512-acfd-44fb-bb1f-b7c793a3f926\" width=\"45\" height=\"30\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/2captcha/2captcha-php\"\u003e\u003cimg src=\"https://github.com/user-attachments/assets/c27d7db5-c20f-47c1-b252-96ee76503b9e\" width=\"52\" height=\"30\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/2captcha/2captcha-java\"\u003e\u003cimg src=\"https://github.com/user-attachments/assets/a3d923f6-4fec-4c07-ac50-e20da6370911\" width=\"50\" height=\"30\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/2captcha/2captcha-csharp\"\u003e\u003cimg src=\"https://github.com/user-attachments/assets/f4d449de-780b-49ed-bb0a-b70c82ec4b32\" width=\"38\" height=\"30\"\u003e\u003c/a\u003e\n\n# PHP Module for 2Captcha API (captcha solver)\nThe easiest way to quickly integrate [2Captcha] captcha solving service into your code to automate solving of any types of captcha.\nExamples of API requests for different captcha types are available on the [PHP captcha solver] page.\n- [PHP Module for 2Captcha API (captcha solver)](#php-module-for-2captcha-api-captcha-solver)\n  - [Installation](#installation)\n    - [Composer](#composer)\n    - [Manual](#manual)\n  - [Configuration](#configuration)\n    - [TwoCaptcha instance options](#twocaptcha-instance-options)\n  - [Solve captcha](#solve-captcha)\n    - [Captcha options](#captcha-options)\n    - [Normal Captcha](#normal-captcha)\n    - [Text Captcha](#text-captcha)\n    - [reCAPTCHA v2](#recaptcha-v2)\n    - [reCAPTCHA v3](#recaptcha-v3)\n    - [FunCaptcha](#funcaptcha)\n    - [GeeTest](#geetest)\n    - [GeeTest V4](#geetest-v4)\n    - [KeyCaptcha](#keycaptcha)\n    - [Capy](#capy)\n    - [Grid](#grid)\n    - [Canvas](#canvas)\n    - [ClickCaptcha](#clickcaptcha)\n    - [Rotate](#rotate)\n    - [Audio Captcha](#audio)\n    - [Yandex](#yandex)\n    - [Lemin Cropped Captcha](#lemin-cropped-captcha)\n    - [Cloudflare Turnstile](#cloudflare-turnstile)\n    - [Amazon WAF](#amazon-waf)\n    - [Tencent](#tencent)\n    - [MTCaptcha](#mtcaptcha)\n    - [Cutcaptcha](#cutcaptcha)\n    - [Friendly Captcha](#friendly-captcha)\n    - [atbCAPTCHA](#atbcaptcha)\n    - [DataDome](#datadome)\n    - [CyberSiARA](#cybersiara)\n  - [Other methods](#other-methods)\n    - [send / getResult](#send--getresult)\n    - [balance](#balance)\n    - [report](#report)\n  - [Proxies](#proxies)\n  - [Error handling](#error-handling)\n  - [Examples](#examples)\n  - [Get in touch](#get-in-touch)\n  - [Join the team 👪](#join-the-team-)\n  - [License](#license)\n    - [Graphics and Trademarks](#graphics-and-trademarks)\n\n\n## Installation\nThis package can be installed via composer or manually\n\n### Composer\n```\ncomposer require 2captcha/2captcha\n```\n\n### Manual\nCopy `src` directory to your project and then `require` autoloader (`src/autoloader.php`) where needed:\n```php\nrequire 'path/to/autoloader.php';\n```\n\n## Configuration\n`TwoCaptcha` instance can be created like this:\n```php\n$solver = new \\TwoCaptcha\\TwoCaptcha('YOUR_API_KEY');\n```\nAlso there are few options that can be configured:\n```php\n$solver = new \\TwoCaptcha\\TwoCaptcha([\n    'server'           =\u003e 'http://rucaptcha.com',\n    'apiKey'           =\u003e 'YOUR_API_KEY',\n    'softId'           =\u003e 123,\n    'callback'         =\u003e 'https://your.site/result-receiver',\n    'defaultTimeout'   =\u003e 120,\n    'recaptchaTimeout' =\u003e 600,\n    'pollingInterval'  =\u003e 10,\n]);\n```\n\n### TwoCaptcha instance options\n\n| Option           | Default value | Description                                                                                                                                        |\n| ---------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |\n| softId           | 4585             | your software ID obtained after publishing in [2captcha software catalog]                                                                          |\n| callback         | -             | URL of your web-sever that receives the captcha recognition result. The URl should be first registered in [pingback settings] of your account      |\n| defaultTimeout   | 120           | Polling timeout in seconds for all captcha types except reCAPTCHA. Defines how long the module tries to get the answer from `res.php` API endpoint |\n| recaptchaTimeout | 600           | Polling timeout for reCAPTCHA in seconds. Defines how long the module tries to get the answer from `res.php` API endpoint                          |\n| pollingInterval  | 10            | Interval in seconds between requests to `res.php` API endpoint, setting values less than 5 seconds is not recommended                              |\n\n\u003e [!IMPORTANT]\n\u003e Once `callback` is defined for `TwoCaptcha` instance, all methods return only the captcha ID and DO NOT poll the API to get the result. The result will be sent to the callback URL.\n\nTo get the answer manually use [getResult method](#send--getresult)\n\n## Solve captcha\nWhen you submit any image-based captcha use can provide additional options to help 2captcha workers to solve it properly.\n\n### Captcha options\n| Option        | Default Value | Description                                                                                        |\n| ------------- | ------------- | -------------------------------------------------------------------------------------------------- |\n| numeric       | 0             | Defines if captcha contains numeric or other symbols [see more info in the API docs][post options] |\n| minLength     | 0             | minimal answer length                                                                              |\n| maxLength     | 0             | maximum answer length                                                                              |\n| phrase        | 0             | defines if the answer contains multiple words or not                                               |\n| caseSensitive | 0             | defines if the answer is case sensitive                                                            |\n| calc          | 0             | defines captcha requires calculation                                                               |\n| lang          | -             | defines the captcha language, see the [list of supported languages]                                |\n| hintImg       | -             | an image with hint shown to workers with the captcha                                               |\n| hintText      | -             | hint or task text shown to workers with the captcha                                                |\n\nBelow you can find basic examples for every captcha type. Check out [examples directory] to find more examples with all available options.\n\n### Normal Captcha\n\n\u003csup\u003e[API method description.](https://2captcha.com/2captcha-api#solving_normal_captcha)\u003c/sup\u003e\n\nTo bypass a normal captcha (distorted text on image) use the following method. This method also can be used to recognize any text on the image.\n\n```php\n$result = $solver-\u003enormal('path/to/captcha.jpg');\n```\n\n### Text Captcha\n\n\u003csup\u003e[API method description.](https://2captcha.com/2captcha-api#solving_text_captcha)\u003c/sup\u003e\n\nThis method can be used to bypass a captcha that requires to answer a question provided in clear text.\n\n```php\n$result = $solver-\u003etext('If tomorrow is Saturday, what day is today?');\n```\n\n### reCAPTCHA v2\n\n\u003csup\u003e[API method description.](https://2captcha.com/2captcha-api#solving_recaptchav2_new)\u003c/sup\u003e\n\nUse this method to solve reCAPTCHA V2 and obtain a token to bypass the protection.\n\n```php\n$result = $solver-\u003erecaptcha([\n    'sitekey' =\u003e '6Le-wvkSVVABCPBMRTvw0Q4Muexq1bi0DJwx_mJ-',\n    'url'     =\u003e 'https://mysite.com/page/with/recaptcha',\n]);\n```\n\n### reCAPTCHA v3\n\n\u003csup\u003e[API method description.](https://2captcha.com/2captcha-api#solving_recaptchav3)\u003c/sup\u003e\n\nThis method provides reCAPTCHA V3 solver and returns a token.\n\n```php\n$result = $solver-\u003erecaptcha([\n    'sitekey' =\u003e '6Le-wvkSVVABCPBMRTvw0Q4Muexq1bi0DJwx_mJ-',\n    'url'     =\u003e 'https://mysite.com/page/with/recaptcha',\n    'version' =\u003e 'v3',\n]);\n```\n\n### FunCaptcha\n\n\u003csup\u003e[API method description.](https://2captcha.com/2captcha-api#solving_funcaptcha_new)\u003c/sup\u003e\n\nFunCaptcha (Arkoselabs) solving method. Returns a token.\n\n```php\n$result = $solver-\u003efuncaptcha([\n    'sitekey' =\u003e '6Le-wvkSVVABCPBMRTvw0Q4Muexq1bi0DJwx_mJ-',\n    'url'     =\u003e 'https://mysite.com/page/with/funcaptcha',\n]);\n```\n\n### GeeTest\n\n\u003csup\u003e[API method description.](https://2captcha.com/2captcha-api#solving_geetest)\u003c/sup\u003e\n\nMethod to solve GeeTest puzzle captcha. Returns a set of tokens as JSON.\n\n```php\n$result = $solver-\u003egeetest([\n    'gt'        =\u003e 'f1ab2cdefa3456789012345b6c78d90e',\n    'challenge' =\u003e '12345678abc90123d45678ef90123a456b',\n    'url'       =\u003e 'https://www.site.com/page/',\n]);\n```\n\n### GeeTest V4\n\n\u003csup\u003e[API method description.](https://2captcha.com/2captcha-api#geetest-v4)\u003c/sup\u003e\n\nMethod to solve GeeTest V4 puzzle captcha. Returns a set of tokens as JSON.\n\n```php\n$result = $solver-\u003egeetest_v4([\n    'captchaId' =\u003e '72bf15796d0b69c43867452fea615052',\n    'url'       =\u003e 'https://mysite.com/captcha.html',\n]);\n```\n\n### KeyCaptcha\n\n\u003csup\u003e[API method description.](https://2captcha.com/2captcha-api#solving_keycaptcha)\u003c/sup\u003e\n\nToken-based method to solve KeyCaptcha.\n\n```php\n$result = $solver-\u003ekeycaptcha([\n    's_s_c_user_id'          =\u003e 10,\n    's_s_c_session_id'       =\u003e '493e52c37c10c2bcdf4a00cbc9ccd1e8',\n    's_s_c_web_server_sign'  =\u003e '9006dc725760858e4c0715b835472f22-pz-',\n    's_s_c_web_server_sign2' =\u003e '2ca3abe86d90c6142d5571db98af6714',\n    'url'                    =\u003e 'https://www.keycaptcha.ru/demo-magnetic/',\n]);\n```\n\n### Capy\n\n\u003csup\u003e[API method description.](https://2captcha.com/2captcha-api#solving_capy)\u003c/sup\u003e\n\nToken-based method to bypass Capy puzzle captcha.\n\n```php\n$result = $solver-\u003ecapy([\n    'sitekey' =\u003e 'PUZZLE_Abc1dEFghIJKLM2no34P56q7rStu8v',\n    'url'     =\u003e 'http://mysite.com/',\n    'api_server' =\u003e 'https://jp.api.capy.me/',\n]);\n```\n\n### Grid\n\n\u003csup\u003e[API method description.](https://2captcha.com/2captcha-api#grid)\u003c/sup\u003e\n\nGrid method is originally called Old reCAPTCHA V2 method. The method can be used to bypass any type of captcha where you can apply a grid on image and need to click specific grid boxes. Returns numbers of boxes.\n\n```php\n$result = $solver-\u003egrid('path/to/captcha.jpg');\n```\n\n### Canvas\n\n\u003csup\u003e[API method description.](https://2captcha.com/2captcha-api#canvas)\u003c/sup\u003e\n\nCanvas method can be used when you need to draw a line around an object on image. Returns a set of points' coordinates to draw a polygon.\n\n```php\n$result = $solver-\u003ecanvas('path/to/captcha.jpg');\n```\n\n### ClickCaptcha\n\n\u003csup\u003e[API method description.](https://2captcha.com/2captcha-api#coordinates)\u003c/sup\u003e\n\nClickCaptcha method returns coordinates of points on captcha image. Can be used if you need to click on particular points on the image.\n\n```php\n$result = $solver-\u003ecoordinates('path/to/captcha.jpg');\n```\n\n### Rotate\n\n\u003csup\u003e[API method description.](https://2captcha.com/2captcha-api#solving_rotatecaptcha)\u003c/sup\u003e\n\nThis method can be used to solve a captcha that asks to rotate an object. Mostly used to bypass FunCaptcha. Returns the rotation angle.\n\n```php\n$result = $solver-\u003erotate('path/to/captcha.jpg');\n```\n\n### Audio\n\n\u003csup\u003e[API method description.](https://2captcha.com/2captcha-api#audio)\u003c/sup\u003e\n\nThis method can be used to solve a audio captcha\n\n```php\n$result = $solver-\u003eaudio('path/to/audio.mp3');\n```\n\n### Yandex\n\nUse this method to solve Yandex and obtain a token to bypass the protection.\n\n```php\n$result = $solver-\u003eyandex([\n    'sitekey' =\u003e 'Y5Lh0tiycconMJGsFd3EbbuNKSp1yaZESUOIHfeV',\n    'url'     =\u003e 'https://rutube.ru',\n]);\n```\n\n### Lemin Cropped Captcha\n\n\u003csup\u003e[API method description.](https://2captcha.com/2captcha-api#lemin)\u003c/sup\u003e\n\nUse this method to solve Lemin and obtain a token to bypass the protection.\n\n```php\n$result = $solver-\u003elemin([\n    'captchaId' =\u003e 'CROPPED_d3d4d56_73ca4008925b4f83a8bed59c2dd0df6d',\n    'apiServer' =\u003e 'api.leminnow.com',\n    'url'       =\u003e 'https://www.site.com/page/',\n]);\n```\n\n### Cloudflare Turnstile\n\n\u003csup\u003e[API method description.](https://2captcha.com/2captcha-api#turnstile)\u003c/sup\u003e\n\nUse this method to solve Turnstile and obtain a token to bypass the protection.\n\n```php\n$result = $solver-\u003eturnstile([\n    'sitekey' =\u003e '0x4AAAAAAAChNiVJM_WtShFf',\n    'url'     =\u003e 'https://ace.fusionist.io',\n]);\n```\n\n### Amazon WAF\n\n\u003csup\u003e[API method description.](https://2captcha.com/2captcha-api#amazon-waf)\u003c/sup\u003e\n\nUse this method to solve Amazon WAF and obtain a token to bypass the protection.\n\n```php\n$result = $solver-\u003eamazon_waf([\n    'sitekey' =\u003e 'AQIDAHjcYu/GjX+QlghicBgQ/7bFaQZ+m5FKCMDnO+vTbNg96AF5H1K/siwSLK7RfstKtN5bAAAAfjB8BgkqhkiG9w0BBwagbzBtAgEAMGgGCSqGSIb3DQEHATAeBglg',\n    'url'     =\u003e 'https://non-existent-example.execute-api.us-east-1.amazonaws.com',\n    'iv'      =\u003e 'test_iv',\n    'context' =\u003e 'test_context'\n]);\n```\n\n### Tencent\n\n\u003csup\u003e[API method description.](https://2captcha.com/2captcha-api#tencent)\u003c/sup\u003e\n\nUse this method to bypass Tencent.\n\n```php\n$result = $solver-\u003etencent([\n    'sitekey' =\u003e '123456789',\n    'url'     =\u003e 'https://www.site.com/page/',\n]);\n```\n\n\n### MTCaptcha\n\n\u003csup\u003e[API method description.](https://2captcha.com/2captcha-api#mtcaptcha)\u003c/sup\u003e\n\nUse this method to bypass MTCaptcha.\n\n```php\n$result = $solver-\u003emt_captcha([\n    'sitekey' =\u003e 'MTPublic-KzqLY1cKH',\n    'url'     =\u003e 'https://2captcha.com/demo/mtcaptcha',\n]);\n```\n\n### Cutcaptcha\n\n\u003csup\u003e[API method description.](https://2captcha.com/2captcha-api#cutcaptcha)\u003c/sup\u003e\n\nUse this method to bypass Cutcaptcha.\n\n```php\n$result = $solver-\u003ecutcaptcha([\n    'misery_key' =\u003e 'a1488b66da00bf332a1488993a5443c79047e752',\n    'api_key'    =\u003e 'SAb83IIB',\n    'url'        =\u003e 'https://example.cc/foo/bar.html',\n]);\n```\n\n### Friendly Captcha\n\n\u003csup\u003e[API method description.](https://2captcha.com/2captcha-api#friendly-captcha)\u003c/sup\u003e\n\nUse this method to bypass Friendly Captcha.\n\n```php\n$result = $solver-\u003efriendly_captcha([\n    'sitekey' =\u003e '2FZFEVS1FZCGQ9',\n    'url'     =\u003e 'https://example.com/',\n]);\n```\n\n### atbCAPTCHA\n\n\u003csup\u003e[API method description.](https://2captcha.com/2captcha-api#atb-captcha)\u003c/sup\u003e\n\nUse this method to bypass atbCAPTCHA.\n\n```php\n$result = $solver-\u003eatb_captcha([\n    'sitekey'     =\u003e 'af23e041b22d000a11e22a230fa8991c',\n    'api_server' =\u003e 'https://cap.aisecurius.com',\n    'url'        =\u003e 'https://example.com/',\n]);\n```\n\n### DataDome\n\n\u003csup\u003e[API method description.](https://2captcha.com/2captcha-api#datadome)\u003c/sup\u003e\n\nUse this method to bypass DataDome.\n\n\u003e [!IMPORTANT]\n\u003e To solve the DataDome captcha, you must use a proxy. It is recommended to use [residential proxies].\n\n```php\n$result = $solver-\u003edatadome([\n    'captcha_url'     =\u003e 'https://geo.captcha-delivery.com/captcha/?initialCid=AHrlqAAA...P~XFrBVptk\u0026t=fe\u0026referer=https%3A%2F%2Fhexample.com\u0026s=45239\u0026e=c538be..c510a00ea',\n    'userAgent' =\u003e 'https://cap.aisecurius.com',\n    'url'        =\u003e 'https://example.com/',\n    'proxy'       =\u003e [\n        'type' =\u003e 'HTTPS',\n        'uri'  =\u003e 'username:str0ngP@$$W0rd@1.2.3.4:4321',\n    ],\n]);\n```\n\n### CyberSiARA\n\n\u003csup\u003e[API method description.](https://2captcha.com/2captcha-api#cybersiara)\u003c/sup\u003e\n\nUse this method to bypass CyberSiARA.\n\n```php\n$result = $solver-\u003ecybersiara([\n    'master_url_id' =\u003e 'tpjOCKjjpdzv3d8Ub2E9COEWKt1vl1Mv',\n    'pageurl' =\u003e 'https://demo.mycybersiara.com/',\n    'userAgent' =\u003e 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36',\n]);\n```\n\n\n## Other methods\n\n### send / getResult\nThese methods can be used for manual captcha submission and answer polling.\n```php\n$id = $solver-\u003esend(['file' =\u003e 'path/to/captcha.jpg', ...]);\n\nsleep(20);\n\n$code = $solver-\u003egetResult($id);\n```\n### balance\n\n\u003csup\u003e[API method description.](https://2captcha.com/2captcha-api#additional-methods)\u003c/sup\u003e\n\nUse this method to get your account's balance\n\n```php\n$balance = $solver-\u003ebalance();\n```\n\n### report\n\n\u003csup\u003e[API method description.](https://2captcha.com/2captcha-api#complain)\u003c/sup\u003e\n\nUse this method to report good or bad captcha answer.\n\n```php\n$solver-\u003ereport($id, true); // captcha solved correctly\n$solver-\u003ereport($id, false); // captcha solved incorrectly\n```\n\n## Proxies\n\nYou can pass your proxy as an additional argument for methods: recaptcha, funcaptcha, geetest, geetest v4, keycaptcha, capy puzzle, lemin, turnstile, amazon waf and etc. The proxy will be forwarded to the API to solve the captcha.\n\nWe have our own proxies that we can offer you. [Buy residential proxies] for avoid restrictions and blocks. [Quick start].\n\nExample solving reCAPTCHA V2 using proxy:\n\n```php\n$result = $solver-\u003erecaptcha([\n    'sitekey'   =\u003e '6Le-wvkSVVABCPBMRTvw0Q4Muexq1bi0DJwx_mJ-',\n    'url'       =\u003e 'https://mysite.com/page/with/recaptcha',\n    'proxy'     =\u003e [\n        'type' =\u003e 'HTTPS',\n        'uri'  =\u003e 'login:password@IP_address:PORT',\n    ],\n]);\n```\n\n## Error handling\n\nIf case of an error captch solver throws an exception. It's important to properly handle these cases. We recommend to use `try catch` to handle exceptions. \n\n```php\ntry {\n    $result = $solver-\u003etext('If tomorrow is Saturday, what day is today?');\n} catch (\\TwoCaptcha\\Exception\\ValidationException $e) {\n    // invalid parameters passed\n} catch (\\TwoCaptcha\\Exception\\NetworkException $e) {\n    // network error occurred\n} catch (\\TwoCaptcha\\Exception\\ApiException $e) {\n    // api respond with error\n} catch (\\TwoCaptcha\\Exception\\TimeoutException $e) {\n    // captcha is not solved so far\n}\n```\n\n## Examples\n\nExamples of solving all supported captcha types are located in the [examples] directory.\n\n## Get in touch\n\n\u003ca href=\"mailto:support@2captcha.com\"\u003e\u003cimg src=\"https://github.com/user-attachments/assets/539df209-7c85-4fa5-84b4-fc22ab93fac7\" width=\"80\" height=\"30\"\u003e\u003c/a\u003e\n\u003ca href=\"https://2captcha.com/support/tickets/new\"\u003e\u003cimg src=\"https://github.com/user-attachments/assets/be044db5-2e67-46c6-8c81-04b78bd99650\" width=\"81\" height=\"30\"\u003e\u003c/a\u003e\n\n## Join the team 👪\n\nThere are many ways to contribute, of which development is only one! Find your next job. Open positions: AI experts, scrapers, developers, technical support, and much more! 😍\n\n\u003ca href=\"mailto:job@2captcha.com\"\u003e\u003cimg src=\"https://github.com/user-attachments/assets/36d23ef5-7866-4841-8e17-261cc8a4e033\" width=\"80\" height=\"30\"\u003e\u003c/a\u003e\n\n## License\n\nThe code in this repository is licensed under the MIT License. See the [LICENSE](./LICENSE) file for more details.\n\n### Graphics and Trademarks\n\nThe graphics and trademarks included in this repository are not covered by the MIT License. Please contact \u003ca href=\"mailto:support@2captcha.com\"\u003esupport\u003c/a\u003e for permissions regarding the use of these materials.\n\n\u003c!-- Shared links --\u003e\n[2Captcha]: https://2captcha.com/\n[2captcha software catalog]: https://2captcha.com/software\n[pingback settings]: https://2captcha.com/setting/pingback\n[post options]: https://2captcha.com/2captcha-api#normal_post\n[list of supported languages]: https://2captcha.com/2captcha-api#language\n[examples directory]: /examples\n[examples]: /examples\n[PHP captcha solver]: https://2captcha.com/lang/php\n[Buy residential proxies]: https://2captcha.com/proxy/residential-proxies\n[residential proxies]: https://2captcha.com/proxy/residential-proxies\n[Quick start]: https://2captcha.com/proxy?openAddTrafficModal=true","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2captcha%2F2captcha-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2captcha%2F2captcha-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2captcha%2F2captcha-php/lists"}