# Google reCaptcha module

## Installation via composer  
``` 

composer require ciext/recaptcha 3.*
 
Or add to composer.json 

"require": {  
...  
"ciext/recaptcha":"3.*"  
  
}

```  

### Integration example

```
// Go to Admin menu - System - Settings and add keys 

// Add in HTML
<form name="fome_name" method="post">
<?= get_instance()->load->library('recaptcha/recaptcha')->token_input() ?>
...
</form>

// Check in PHP 
if ($this->load->library('recaptcha/recaptcha')->is_valid_token()) {
// token is valid
}
  
```  
