ReCaptcha\RequestMethod\CurlPost
Sends cURL request to the reCAPTCHA service.
Note: this requires the cURL extension to be enabled in PHP
Synopsis
class CurlPost
implements
RequestMethod
{
- // constants
- const SITE_VERIFY_URL = 'https://www.google.com/recaptcha/api/siteverify';
- // members
- private Curl $curl;
- // methods
- public void __construct()
- public string submit()
Hierarchy
Implements
Constants
Name | Value |
---|---|
SITE_VERIFY_URL | 'https://www.google.com/recaptcha/api/siteverify' |
Members
private
- $curl
—
ReCaptcha\RequestMethod\Curl
Curl connection to the reCAPTCHA service
Methods
public
- __construct()
- submit() — Submit the cURL request with the specified parameters.