ReCaptcha
  • Namespace
  • Class
  • Tree
  • Todo

Namespaces

  • DevStrefa
    • ReCaptcha
      • Senders

Classes

  • ReCaptcha
  • Response

Class Response

Response class is used to store response from google reCaptcha service.

Namespace: DevStrefa\ReCaptcha
License: MIT
Author: Cichy d3ut3r@gmail.com
Version: 1.0.0
Located at src/DevStrefa/ReCaptcha/Response.php

Methods summary

public
# __construct( $jsonData )
public DateTime
# getDate( )

Return PHP DateTIme object of challenge timestamp from google response, if this response do not contain challenge_ts field it will return current date and time

Return PHP DateTIme object of challenge timestamp from google response, if this response do not contain challenge_ts field it will return current date and time

Returns

DateTime
Date object of challenge timeStamp
public String
# getHostname( )

Returns

String
Hostname
public array
# getErrors( )

Returns

array
Array of errors
public boolean
# isSuccess( )

Returns

boolean
Result of challenge
public string
# getRaw( )

Returns

string
Raw JSON string

Properties summary

private boolean $success

TRUE if Captcha was Solved FALSE if not

TRUE if Captcha was Solved FALSE if not

#
private string $date

timestamp in ISO format yyyy-MM-dd'T'HH:mm:ssZZ

timestamp in ISO format yyyy-MM-dd'T'HH:mm:ssZZ

#
private string $hostname

host name

host name

#
private array $errors

Array of errors

Array of errors

#
private string $raw

Raw JSON string form google service

Raw JSON string form google service

#
ReCaptcha API documentation generated by ApiGen