{"id":20792029,"url":"https://github.com/sadeghpm/recapcha","last_synced_at":"2025-05-05T21:28:24.730Z","repository":{"id":62539053,"uuid":"83159889","full_name":"SadeghPM/reCAPCHA","owner":"SadeghPM","description":"PSR-7 Google reCAPCHA Middleware","archived":false,"fork":false,"pushed_at":"2017-02-25T22:10:49.000Z","size":13,"stargazers_count":12,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-21T21:32:15.536Z","etag":null,"topics":["middleware","php","psr-7","recaptcha","slim3","slimframework"],"latest_commit_sha":null,"homepage":null,"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/SadeghPM.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}},"created_at":"2017-02-25T20:18:54.000Z","updated_at":"2024-01-31T17:16:33.000Z","dependencies_parsed_at":"2022-11-02T16:15:19.166Z","dependency_job_id":null,"html_url":"https://github.com/SadeghPM/reCAPCHA","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SadeghPM%2FreCAPCHA","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SadeghPM%2FreCAPCHA/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SadeghPM%2FreCAPCHA/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SadeghPM%2FreCAPCHA/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SadeghPM","download_url":"https://codeload.github.com/SadeghPM/reCAPCHA/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225059575,"owners_count":17414712,"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":["middleware","php","psr-7","recaptcha","slim3","slimframework"],"created_at":"2024-11-17T15:48:06.500Z","updated_at":"2024-11-17T15:48:07.201Z","avatar_url":"https://github.com/SadeghPM.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PSR-7 Google reCAPCHA Middleware\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)\u003cbr\u003e\nThis middleware implement server side google reCAPCHA v2 validation.It was originally developed for Slimframework 3 but can be used with any framework using PSR-7 style middlewares.\nIt is very simple and without any dependancy.\n\n## Install\n\nInstall latest version using [composer](https://getcomposer.org/).\n\n``` bash\n$ composer require sadegh-pm/recapcha\n```\n\n## Usage\nAdd the middleware in the route that you rendering the reCAPTCHA widget. for example i inserted reCAPTCHA widget in the \u003ccode\u003e/login\u003c/code\u003e route:\n```php\n  $app-\u003epost('/login', App\\Api\\Login::class . ':verify')\n      -\u003eadd( new \\SadeghPM\\Recapcha\\GoogleReCapcha($reCAPCHA_Secret) );\n```\nif google reCAPCHA verifying the user's response , your route will be resolved otherwise app will be terminate.the terminated  response status code is \u003ccode\u003e403\u003c/code\u003e and body is a json:\n```json\n{\n  \"ok\":false,\n  \"description\":\"errors...\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsadeghpm%2Frecapcha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsadeghpm%2Frecapcha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsadeghpm%2Frecapcha/lists"}