{"id":37232956,"url":"https://github.com/kiddivouchers/hcaptcha","last_synced_at":"2026-04-01T17:35:50.674Z","repository":{"id":255336694,"uuid":"841942029","full_name":"kiddivouchers/hcaptcha","owner":"kiddivouchers","description":"PHP hCaptcha library","archived":false,"fork":false,"pushed_at":"2026-01-07T08:37:07.000Z","size":170,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2026-01-14T13:57:10.132Z","etag":null,"topics":["library","php"],"latest_commit_sha":null,"homepage":"","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/kiddivouchers.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-08-13T11:00:13.000Z","updated_at":"2026-01-07T08:37:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"41964d06-afb3-4ca3-ba22-480ec9be44c9","html_url":"https://github.com/kiddivouchers/hcaptcha","commit_stats":null,"previous_names":["kiddivouchers/hcaptcha"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/kiddivouchers/hcaptcha","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiddivouchers%2Fhcaptcha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiddivouchers%2Fhcaptcha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiddivouchers%2Fhcaptcha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiddivouchers%2Fhcaptcha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kiddivouchers","download_url":"https://codeload.github.com/kiddivouchers/hcaptcha/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiddivouchers%2Fhcaptcha/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28442357,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T00:55:22.719Z","status":"online","status_checked_at":"2026-01-15T02:00:08.019Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["library","php"],"created_at":"2026-01-15T03:51:40.487Z","updated_at":"2026-01-15T03:51:41.065Z","avatar_url":"https://github.com/kiddivouchers.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"hCaptcha API Client\n===================\n\n\nUsage\n-----\n\n### Basic\n\nWith `php-http/discovery` installed this package will be leveraged to attempt to\nuse the most appropriate implementations of [PSR-7][] and [PSR-18][].\n\n```sh\ncomposer require widerplan/hcaptcha php-http/discovery\n```\n\n```php\n\u003c?php\n\ndeclare(strict_types=1);\n\nuse WiderPlan\\Hcaptcha\\Client;\n\n$client = Client::create(getenv('HCAPTCHA_SECRET'));\n$result = $client-\u003everify($_POST['h-captcha-response'], getenv('HCAPTCHA_SITE_KEY'));\n\nif ($result-\u003esuccess) {\n    // Perform protected action...\n}\n```\n\n### With custom components\n\nInstead of relying on the automatic discovery you can wire up your chosen implementations.\n\n```sh\ncomposer require widerplan/hcaptcha symfony/http-client slim/psr7\n```\n\n```php\n\u003c?php\n\ndeclare(strict_types=1);\n\nuse Slim\\Psr7\\Factory;\nuse Symfony\\Component\\HttpClient\\Psr18Client;\nuse WiderPlan\\Hcaptcha\\Client;\n\n$httpClient = new Psr18Client(\n    null,\n    new Factory\\ResponseFactory(),\n    new Factory\\StreamFactory(),\n);\n$client = Client::create(getenv('HCAPTCHA_SECRET'), $httpClient);\n$result = $client-\u003everify($_POST['h-captcha-response'], getenv('HCAPTCHA_SITE_KEY'));\n\nif ($result-\u003esuccess) {\n    // Perform protected action...\n}\n```\n\n[PSR-7]: https://www.php-fig.org/psr/psr-7/\n[PSR-18]: https://www.php-fig.org/psr/psr-18/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiddivouchers%2Fhcaptcha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkiddivouchers%2Fhcaptcha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiddivouchers%2Fhcaptcha/lists"}