PHPackages                             fizzka/phalcon-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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. fizzka/phalcon-recaptcha

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

fizzka/phalcon-recaptcha
========================

Simple wrapper for google recaptcha for phalcon

0.1.2(11y ago)167.6k5[1 issues](https://github.com/fizzka/phalcon-recaptcha/issues)[1 PRs](https://github.com/fizzka/phalcon-recaptcha/pulls)MITPHP

Since Jan 18Pushed 8y ago2 watchersCompare

[ Source](https://github.com/fizzka/phalcon-recaptcha)[ Packagist](https://packagist.org/packages/fizzka/phalcon-recaptcha)[ RSS](/packages/fizzka-phalcon-recaptcha/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

phalcon-recaptcha
=================

[](#phalcon-recaptcha)

About
-----

[](#about)

This is small component to provide [Google Recaptcha](https://www.google.com/recaptcha) functionality in [Phalcon](http://www.phalconphp.com).

It uses phalcon DI. Be sure, you supply DI this correct recaptcha configuration.

Installation
------------

[](#installation)

Feel free to fork, clone this repo, or install via composer:

```
composer require fizzka/phalcon-recaptcha
```

Usage
-----

[](#usage)

There are 3 easy steps:

### Step 1

[](#step-1)

Setup up config &amp; di (or ensure, you did this at application bootstrap ;) :

```
$config = new Phalcon\Config(array(
	"recaptcha" => array(
		'publicKey' => '[...your pub key goes here...]',
		'secretKey' => '[...your priv key goes here...]',
		'jsApiUrl' => 'https://www.google.com/recaptcha/api.js',
		'verifyUrl' => 'https://www.google.com/recaptcha/api/siteverify',
	)
));

$di = new Phalcon\DI\FactoryDefault();
$di->set('config', $config);
```

### Step 2

[](#step-2)

Create form and add recaptcha on it:

```
$form = new Phalcon\Forms\Form;
$form->setDI($di);

$recaptcha = new Fizz\Phalcon\Recaptcha('recaptcha');
$recaptcha->addValidator(new Fizz\Phalcon\RecaptchaValidator(array(
	'message' => "Are you human? (custom message)"
)));

$form->add($recaptcha);
```

### Step 3

[](#step-3)

Validate form after submission:

```
//submitted data, ex
$post = array(
	'g_recaptcha_response' => 'abzfoobar'
);

if ($form->isValid($post)) {
	echo 'ok';
} else {
	print_r($form->getMessages());
}
```

Code example
------------

[](#code-example)

Full-working example @see [example.php](example.php)

License
-------

[](#license)

MIT

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity56

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

Every ~44 days

Total

3

Last Release

4040d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ff5d99372207454da4404d4c619ff55ab4d6b9cf9674d8a122507961b3a651f?d=identicon)[fizzka](/maintainers/fizzka)

---

Top Contributors

[![fizzka](https://avatars.githubusercontent.com/u/2384736?v=4)](https://github.com/fizzka "fizzka (6 commits)")

---

Tags

recaptchaphalconform element

### Embed Badge

![Health badge](/badges/fizzka-phalcon-recaptcha/health.svg)

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

###  Alternatives

[google/recaptcha

Client library for reCAPTCHA, a free service that protects websites from spam and abuse.

3.6k89.1M221](/packages/google-recaptcha)[anhskohbo/no-captcha

No CAPTCHA reCAPTCHA For Laravel.

1.8k8.5M33](/packages/anhskohbo-no-captcha)[albertcht/invisible-recaptcha

Invisible reCAPTCHA For Laravel.

6031.6M6](/packages/albertcht-invisible-recaptcha)[josiasmontag/laravel-recaptchav3

Recaptcha V3 for Laravel package

2641.6M2](/packages/josiasmontag-laravel-recaptchav3)[arcanedev/no-captcha

No CAPTCHA (new Google reCAPTCHA) with Laravel support

370730.4k6](/packages/arcanedev-no-captcha)[timehunter/laravel-google-recaptcha-v3

Laravel Package for google reCAPTCHA v3

2861.0M1](/packages/timehunter-laravel-google-recaptcha-v3)

PHPackages © 2026

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