Recommend this page to a friend! |
Download |
Info | Documentation | Demos | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 107 | All time: 9,683 This week: 455 |
Version | License | PHP version | Categories | |||
ci-google-recaptcha 1.0.0 | The PHP License | 5 | PHP 5, Libraries, Validation, Security |
Collaborate with this project | Author | ||||||||
Codeigniter-Google-ReCaptcha - github.com Description This package can perform validation using Recaptcha in CodeIgniter forms. |
|
Codeigniter-Google-ReCaptcha uses Codeigniter Form Validation.You just need to edit your config and form view.You don't need to write any extra codes.A simple Google ReCaptcha implementation for CodeIgniter - Easy installation - Write Less Code With 2 Steps
You can easily implement "Google ReCaptcha" to your forms with 2 Steps.You don't need to write any extra codes on the controller for Google ReCaptcha validation.Just use codeigniter validation library.
Controller
$this->load->library('form_validation');
$validation_rules = array(); // If you have another form rules you can define
$this->form_validation->set_rules($validation_rules);
if($this->form_validation->run()){
exit("Form validated");
}
Open the "config/gcaptcha" file and write to "gcaptcha_server_secret" and "gcaptcha_client_secret" codes.
/*
|--------------------------------------------------------------------------
| Google Captcha Server Secret Code
|--------------------------------------------------------------------------
*/
$config['gcaptcha_server_secret'] = '';
/*
|--------------------------------------------------------------------------
| Google Captcha Client Secret Code
|--------------------------------------------------------------------------
*/
$config['gcaptcha_client_secret'] = '';
Put these codes into the your html forms.
<?php echo create_gcaptcha();?>
<span class="error"><?php echo gcaptcha_error();?></span>
Files (9) | / | application |
Files (9) | / | application | / | controllers |
File | Role | Description |
---|---|---|
Example.php | Class | Class source |
Welcome.php | Class | Class source |
Files (9) | / | application | / | language | / | english |
File | Role | Description |
---|---|---|
gcaptcha_form_validation_lang.php | Aux. | Auxiliary script |
Files (9) | / | application | / | views |
File | Role | Description |
---|---|---|
gcaptcha_example.php | Aux. | Auxiliary script |
welcome_message.php | Aux. | Auxiliary script |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.