PHPackages                             wiejakp/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. [Security](/categories/security)
4. /
5. wiejakp/captcha

ActiveLibrary[Security](/categories/security)

wiejakp/captcha
===============

Captcha library for PHP applications.

v2.0.0(2w ago)013.4kMITPHPPHP ^8.1CI failing

Since Nov 14Pushed 2w ago1 watchersCompare

[ Source](https://github.com/wiejakp/captcha)[ Packagist](https://packagist.org/packages/wiejakp/captcha)[ Docs](https://github.com/wiejakp/captcha)[ RSS](/packages/wiejakp-captcha/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (4)Dependencies (7)Versions (7)Used By (0)

wiejakp/captcha
===============

[](#wiejakpcaptcha)

Captcha library for PHP applications.

Requirements
------------

[](#requirements)

- PHP `^8.1`
- PHP Intl extension
- Symfony HttpFoundation `^6.4`
- Symfony Security Core `^6.4`

PCOV or Xdebug is required only when generating code coverage.

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

[](#installation)

```
composer require wiejakp/captcha:^2.0
```

Usage
-----

[](#usage)

```
use wiejakp\captcha\CaptchaService;

$captcha = new CaptchaService();
$challenge = $captcha->createPositiveCaptchaChallenge();

echo $challenge->getChallenge();

if ($challenge->isEqual($submittedAnswer)) {
    // The answer is valid.
}
```

Challenges are stored in the configured Symfony session by default. Pass `false` to a creation method when the generated challenge should not be stored.

Tests
-----

[](#tests)

Run the suite under PHP 8.1:

```
composer test
```

With PCOV enabled, generate coverage using:

```
composer test:coverage
```

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance96

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 94.1% 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 ~612 days

Total

5

Last Release

19d ago

Major Versions

v1.0.2.x-dev → v2.0.02026-07-30

PHP version history (3 changes)v1.0.0PHP &gt;=7.2.0

v1.0.2PHP ^7.3 || ^8.0

v2.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/9ccb9f721528b7e752bf977365a1881f9698c2683b4238dd7e18e4418b283978?d=identicon)[wiejakp](/maintainers/wiejakp)

---

Top Contributors

[![wiejakp](https://avatars.githubusercontent.com/u/22645549?v=4)](https://github.com/wiejakp "wiejakp (16 commits)")[![snebes](https://avatars.githubusercontent.com/u/666333?v=4)](https://github.com/snebes "snebes (1 commits)")

---

Tags

captchaphpphplibrarycaptcha

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[symfony/security-bundle

Provides a tight integration of the Security component into the Symfony full-stack framework

2.5k190.0M2.6k](/packages/symfony-security-bundle)[symfony/security-http

Symfony Security Component - HTTP Integration

1.7k181.7M444](/packages/symfony-security-http)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k6.0M777](/packages/sylius-sylius)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.9M535](/packages/pimcore-pimcore)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M236](/packages/sulu-sulu)

PHPackages © 2026

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