hcaptcha([ 'sitekey' => '10000000-ffff-ffff-ffff-000000000001', 'url' => 'https://www.site.com/page/', ]); } catch (\Exception $e) { die($e->getMessage()); } die('Captcha solved: ' . $result->code);