PHPackages                             theodorejb/responsive-captcha - 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. theodorejb/responsive-captcha

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

theodorejb/responsive-captcha
=============================

Generate mobile-friendly, accessible CAPTCHAs

v3.0.1(5y ago)11356MITPHPPHP &gt;=7.1CI failing

Since Sep 22Pushed 5y ago5 watchersCompare

[ Source](https://github.com/theodorejb/Responsive-Captcha)[ Packagist](https://packagist.org/packages/theodorejb/responsive-captcha)[ RSS](/packages/theodorejb-responsive-captcha/feed)WikiDiscussions master Synced today

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

Responsive Captcha
==================

[](#responsive-captcha)

[![Packagist Version](https://camo.githubusercontent.com/9721cd898e8d977d7ad822fce6dbea52d094634af6173f7f8b85e968a8ccbfce/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7468656f646f72656a622f726573706f6e736976652d636170746368612e737667)](https://packagist.org/packages/theodorejb/responsive-captcha)

Prevent form spam by generating random, accessible arithmetic and logic questions.

Examples:

- "What is the fourth letter in snowboard?"
- "What is the sum of four and six?"
- "What is eight multiplied by two?"
- "Which is smallest: sixty-six, one hundred, or twenty-two?"

Users can respond with either the numeric or textual version of an answer (e.g. "16" or "sixteen").

For background info on this project, see my blog post:

Install via Composer
--------------------

[](#install-via-composer)

`composer require theodorejb/responsive-captcha`

Usage
-----

[](#usage)

1. Generate a random question:

    ```
    use function theodorejb\ResponsiveCaptcha\{randomQuestion, checkAnswer};

    $qa = randomQuestion();
    $realAnswer = $qa->getAnswer(); // save somewhere (e.g. in session or encrypted single-use token)
    ```
2. Display question in form:

    ```

    ```
3. Check whether the user's response is correct:

    ```
    $answer = filter_input(INPUT_POST, "captcha");

    if ($answer !== null) {
        if (checkAnswer($answer, $realAnswer)) {
            // code to execute if the captcha answer is correct
        } else {
            // the answer is incorrect - show an error to the user
        }
    }
    ```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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 ~542 days

Total

5

Last Release

2132d ago

Major Versions

v2.0.2 → v3.0.02017-04-16

PHP version history (3 changes)v2.0.0PHP &gt;=5.4.0

v3.0.0PHP &gt;=7.0

v3.0.1PHP &gt;=7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3053271?v=4)[Theodore Brown](/maintainers/theodorejb)[@theodorejb](https://github.com/theodorejb)

---

Top Contributors

[![theodorejb](https://avatars.githubusercontent.com/u/3053271?v=4)](https://github.com/theodorejb "theodorejb (57 commits)")

---

Tags

captchaphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/theodorejb-responsive-captcha/health.svg)

```
[![Health](https://phpackages.com/badges/theodorejb-responsive-captcha/health.svg)](https://phpackages.com/packages/theodorejb-responsive-captcha)
```

PHPackages © 2026

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