PHPackages                             djordje/li3\_recaptcha - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. djordje/li3\_recaptcha

ActiveLithium-library[Utility &amp; Helpers](/categories/utility)

djordje/li3\_recaptcha
======================

Plugin that enable easy interactions with Googles reCAPTCHA API from Lithium PHP framework

v1.0.0(13y ago)3772BSD-3-ClausePHPPHP &gt;=5.3

Since Dec 22Pushed 13y ago2 watchersCompare

[ Source](https://github.com/djordje/li3_recaptcha)[ Packagist](https://packagist.org/packages/djordje/li3_recaptcha)[ Docs](https://github.com/djordje/li3_recaptcha)[ RSS](/packages/djordje-li3-recaptcha/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

\[[![project status](https://camo.githubusercontent.com/98fc8f049be9f3f17c6cea75d45dc81048935453ce1268a873bdb5ae7d5fdeaf/687474703a2f2f7374696c6c6d61696e7461696e65642e636f6d2f646a6f72646a652f6c69335f7265636170746368612e706e67)](https://camo.githubusercontent.com/98fc8f049be9f3f17c6cea75d45dc81048935453ce1268a873bdb5ae7d5fdeaf/687474703a2f2f7374696c6c6d61696e7461696e65642e636f6d2f646a6f72646a652f6c69335f7265636170746368612e706e67)\] ([http://stillmaintained.com/djordje/li3\_recaptcha](http://stillmaintained.com/djordje/li3_recaptcha))

reCAPTCHA plugin for [Lithium PHP framework](http://github.com/UnionOfRAD/lithium)
==================================================================================

[](#recaptcha-plugin-for-lithium-php-framework)

Plugin that enable easy interactions with [Googles reCAPTCHA API](http://www.google.com/recaptcha)

**Created by** [Djordje Kovacevic](http://github.com/djordje) 2012-05-26

**Thanks to** @[gwoo](http://github.com/gwoo) and @[nateabele](http://github.com/nateabele) for helping on #li3 chanel!

Installation and configuration
------------------------------

[](#installation-and-configuration)

**1a.** Checkout the code to either of your library directories:

```
cd libraries
git clone git://github.com/djordje/li3_recaptcha.git

```

**1b.** Or if you use **composer** you can add this to your `composer.json` file:

```
	{
		"require": {
			"djordje/li3_recaptcha": "v1.0.0"
		}
	}
```

**2.** Include library in your `app/config/bootstrap/libraries.php`, and pass your reCAPTCHA keys as config:

```
	Libraries::add('li3_recaptcha', array(
		'keys' => array(
			'public' => 'your_public_recaptcha_key',
			'private' => 'your_private_recaptcha_key',
			'mailhide_public' => 'your_public_mailhide_recaptcha_key',
			'mailhide_private' => 'your_private_mailhide_recaptcha_key'
		)
	));
```

**WARNING:** You must provide `public` and `private` keys or this plugin will not work!

Additionaly you can pass `options` for configuring `RecaptchaOptions` look and feel, this will be global for your application, but you can override it by passing new `options`to helpers `challenge()` method.

**See [Customizing the Look and Feel of reCAPTCHA](https://developers.google.com/recaptcha/docs/customization)for available options.**

```
	Libraries::add('li3_recaptcha', array(
		'options' => array(
			'theme' => 'white'
		)
	));
```

Usage
-----

[](#usage)

This plugin provide template helper `li3_recaptcha\extensions\helper\Recaptcha`, you can use it in your template `$this->recaptcha->{method}()`.

**Challenge**

If you want to create reCAPTCHA challenge field you add `$this->recptcha->challenge()` to your form.

You can also pass `RecaptchaOptions` as param to `challenge()` method:

```
	$this->recaptcha->challenge(array(
		'theme' => 'blackglass'
	));
```

**Mailhide**

For hidding email you use `$this->recaptcha->mailhide($email)`.

**Checking challenge field in your controller**

To check your reCAPTCHA challenge answare you add to action in your controller something like this:

```
	if ($this->request->data && Recaptcha::check($this->request)) {
		// Do some stuff for users that passed reCAPTCHA check
	}
```

Testing
-------

[](#testing)

There is not unit tests for this plugin because reCAPTCHA does not provide testing API

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.8% 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

4889d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/936366059f593fa9a53c2d9803e62c9046796ad007970deb4cbca4b52dba9e93?d=identicon)[djordje](/maintainers/djordje)

---

Top Contributors

[![djordje](https://avatars.githubusercontent.com/u/1223357?v=4)](https://github.com/djordje "djordje (15 commits)")[![osiux](https://avatars.githubusercontent.com/u/204463?v=4)](https://github.com/osiux "osiux (1 commits)")

---

Tags

phplithiumrecaptchacaptchali3

### Embed Badge

![Health badge](/badges/djordje-li3-recaptcha/health.svg)

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

###  Alternatives

[nzedb/nzedb

A Usenet Indexer

6415.4k](/packages/nzedb-nzedb)

PHPackages © 2026

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