PHPackages                             zoneroot/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. zoneroot/recaptcha

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

zoneroot/recaptcha
==================

Simple recaptcha class

012PHP

Since Jan 17Pushed 11y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Recaptcha
=========

[](#recaptcha)

Simple recaptcha static php class.

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

[](#installation)

With composer :

```
"zoneroot/recaptcha": "dev-master"
```

Usage
=====

[](#usage)

First you need to init the recaptcha with your keys :

```
use \zoneroot\recaptcha\recaptcha;
recaptcha::init("public key", "private key");
```

Then in your head tag insert :

```
echo recaptcha::script()
```

Next in your form tag insert :

```
echo recaptcha::html()
```

Finally you must check if the captcha is valid :

```
try {
	recaptcha::check()
	echo "Captcha is valid";
}
catch (\zoneroot\recaptcha\exceptions\invalidRecaptchaException $e) {
	echo $e->getMessage();
}
catch (\zoneroot\recaptcha\exceptions\connectionException $e) {
	echo $e->getMessage();
}
```

Contributing
------------

[](#contributing)

For contributing just follow the code style.

Todo
----

[](#todo)

> Add some comment

\####Inspired by [grafikart](http://www.grafikart.fr/tutoriels/php/recaptcha-anti-spam-346)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/23bd9e235bd04297f2049d32e59ed97a94aacd93fab4afbb16b8ec3fdb56ec03?d=identicon)[zoneroot](/maintainers/zoneroot)

---

Top Contributors

[![zoneroot](https://avatars.githubusercontent.com/u/1156847?v=4)](https://github.com/zoneroot "zoneroot (8 commits)")

### Embed Badge

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

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

###  Alternatives

[smart-crowd/simple-sms-drivers

Addition providers for simple SMS laravel package

101.0k](/packages/smart-crowd-simple-sms-drivers)

PHPackages © 2026

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