PHPackages                             hexageek1337/recaptcha-codeigniter4 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. hexageek1337/recaptcha-codeigniter4

AbandonedArchivedCodeigniter4-library[Authentication &amp; Authorization](/categories/authentication)

hexageek1337/recaptcha-codeigniter4
===================================

Free to Use Library reCAPTCHA v2 for Codeigniter 4.

1.0(5y ago)398GPL-3.0PHP

Since Apr 10Pushed 3y ago1 watchersCompare

[ Source](https://github.com/hexageek1337/reCAPTCHA-Codeigniter)[ Packagist](https://packagist.org/packages/hexageek1337/recaptcha-codeigniter4)[ Docs](https://github.com/hexageek1337/reCAPTCHA-Codeigniter)[ Fund](https://paypal.me/hexageek1337)[ Fund](https://saweria.co/hexageek1337)[ RSS](/packages/hexageek1337-recaptcha-codeigniter4/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

reCAPTCHA Codeigniter 4
=======================

[](#recaptcha-codeigniter-4)

Free to Use Library reCAPTCHA v2 for Codeigniter 4.

Note
====

[](#note)

This repostory already move to

What is reCAPTCHA?
==================

[](#what-is-recaptcha)

reCAPTCHA is a free service that protects your site from spam and abuse. It uses advanced risk analysis engine to tell humans and bots apart. With the new API, a significant number of your valid human users will pass the reCAPTCHA challenge without having to solve a CAPTCHA (See blog for more details). reCAPTCHA comes in the form of a widget that you can easily add to your blog, forum, registration form, etc.

See [the details](https://www.google.com/recaptcha/intro/index.html).

Sign up for an API key pair
===========================

[](#sign-up-for-an-api-key-pair)

To use reCAPTCHA, you need to [sign up for an API key pair](http://www.google.com/recaptcha/admin) for your site. The key pair consists of a site key and secret. The site key is used to display the widget on your site. The secret authorizes communication between your application backend and the reCAPTCHA server to verify the user's response. The secret needs to be kept safe for security purposes.

Installation
============

[](#installation)

install with composer

```
$ composer require hexageek1337/recaptcha-codeigniter4
```

manual install with git clone

```
$ git clone https://github.com/hexageek1337/reCAPTCHA-Codeigniter
$ cd reCAPTCHA-Codeigniter-main
$ cp app/Config/Settings.php your_application_folder/Config/
$ cp app/Libraries/Recaptcha.php your_application_folder/Libraries/
```

Usage
=====

[](#usage)

Set your site key and secret on `app/Config/Settings.php` file

```
public $recaptcha_site_key = '';
public $recaptcha_secret_key = '';
public $recaptcha_lang = 'id';
```

### Render the reCAPTCHA widget

[](#render-the-recaptcha-widget)

```
echo $this->recaptcha->getWidget();
```

output:

```

```

change default theme by pass array parameter

```
echo $this->recaptcha->getWidget(array('data-theme' => 'dark'));
```

change default type by pass array parameter

```
echo $this->recaptcha->getWidget(array('data-theme' => 'dark', 'data-type' => 'audio'));
```

### Render Script Tag

[](#render-script-tag)

```
echo $this->recaptcha->getScriptTag();
```

output:

```

```

change render value by pass array parameter

```
echo $this->recaptcha->getScriptTag(array('render' => 'explicit'));
```

change default language by pass array parameter

```
echo $this->recaptcha->getScriptTag(array('render' => 'explicit', 'hl' => 'zh-TW'));
```

### Verify Response

[](#verify-response)

Calls the reCAPTCHA siteverify API to verify whether the user passes `g-recaptcha-response` POST parameter.

```
$captcha = $this->request->getPost('g-recaptcha-response');
$response = $this->recaptcha->verifyResponse($captcha);
```

check success or fail

```
if (isset($response['success']) and $response['success'] === true) {
    echo "You got it!";
}
```

Regards
=======

[](#regards)

- Bo-Yi Wu [@appleboy](https://twitter.com/appleboy)
- Denny Septian Panggabean [github.com/hexageek1337](https://github.com/hexageek1337)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1857d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/be1785558267dc6d76db023bfc922f67538bf0a2f638ccde0ffb28682c442d0f?d=identicon)[hexageek1337](/maintainers/hexageek1337)

---

Top Contributors

[![hexageek1337](https://avatars.githubusercontent.com/u/23435485?v=4)](https://github.com/hexageek1337 "hexageek1337 (17 commits)")

---

Tags

codeignitercodeigniter-librarycodeigniter4phpphp-libraryphp7recaptcharecaptcha-apirecaptcha-v2recaptchav2phpcodeigniterrecaptchacodeigniter4

### Embed Badge

![Health badge](/badges/hexageek1337-recaptcha-codeigniter4/health.svg)

```
[![Health](https://phpackages.com/badges/hexageek1337-recaptcha-codeigniter4/health.svg)](https://phpackages.com/packages/hexageek1337-recaptcha-codeigniter4)
```

###  Alternatives

[codeigniter4/shield

Authentication and Authorization for CodeIgniter 4

417372.4k22](/packages/codeigniter4-shield)[tatter/permits

Model permission handling for CodeIgniter 4

1443.0k2](/packages/tatter-permits)[mehdibo/codeigniter-recaptcha

CodeIgniter library to use Google's reCAPTCHA V2

273.7k](/packages/mehdibo-codeigniter-recaptcha)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
