PHP Classes
elePHPant
Icontem

CodeIgniter ReCaptcha plugin: Perform validation using Recaptcha in CodeIgniter

Recommend this page to a friend!
  Info   View files Documentation   Demos   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2016-10-13 (27 days ago) RSS 2.0 feedNot enough user ratingsTotal: 40 This week: 40All time: 8,618 This week: 30Up
Version License PHP version Categories
ci-google-recaptcha 1.0The PHP License5PHP 5, Libraries, Validation, Security
Collaborate with this project Author
Description

This package can perform validation using Recaptcha in CodeIgniter forms.

It generates HTML and JavaScript to embed Google Recapctha widget to validate real human users on a Web page form generated by CodeIgniter.

It only requires configuring the Recaptcha client and server secret.

Picture of Eray Akartuna
  Performance   Level  

Details

Codeigniter-Google-ReCaptcha

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

Demo

Demo Page

alt tag

Usage

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.

Code Sample

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");
}

Installation Step-1

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'] = '';

Installation Step-2

Put these codes into the your html forms.

<?php echo create_gcaptcha();?>
<span class="error"><?php echo gcaptcha_error();?></span>

  DemoExternal page  
  Files folder image Files  
File Role Description
Files folder imageapplication (6 directories)
Accessible without login Plain text file README.md Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 100%
Total:40
This week:40
All time:8,618
This week:30Up