PHPackages                             romeoz/rock-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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. romeoz/rock-captcha

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

romeoz/rock-captcha
===================

Captcha library

0.11.0(10y ago)019MITPHPPHP &gt;=5.4.0

Since Oct 23Pushed 10y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (5)Versions (4)Used By (0)

Captcha library fo PHP
======================

[](#captcha-library-fo-php)

[![Latest Stable Version](https://camo.githubusercontent.com/07e6543143bbd93efa8b446266a0fea1a29adb21d21a0f8cb5b68e925231941d/68747470733a2f2f706f7365722e707567782e6f72672f726f6d654f7a2f726f636b2d636170746368612f762f737461626c652e737667)](https://packagist.org/packages/romeOz/rock-captcha)[![Total Downloads](https://camo.githubusercontent.com/b12d8e973c99467ff14441b305c52851a898088660ec2beb9bcaf4cd00e7b107/68747470733a2f2f706f7365722e707567782e6f72672f726f6d654f7a2f726f636b2d636170746368612f646f776e6c6f6164732e737667)](https://packagist.org/packages/romeOz/rock-captcha)[![Build Status](https://camo.githubusercontent.com/3781264ca5fc2599d2981a416e3e7a540f68fa67ba1471cfa86b9c2cdd9b75bc/68747470733a2f2f7472617669732d63692e6f72672f726f6d654f7a2f726f636b2d636170746368612e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/romeOz/rock-captcha)[![HHVM Status](https://camo.githubusercontent.com/47e09886cef44b84b769aaa7d0f923dd01ecfd78025614f57dfccd583e773c8e/687474703a2f2f6868766d2e683463632e64652f62616467652f726f6d656f7a2f726f636b2d636170746368612e737667)](http://hhvm.h4cc.de/package/romeoz/rock-captcha)[![Coverage Status](https://camo.githubusercontent.com/c51cb5680bce83dbc79293895b5f034172a2261fa6511227d50292cea018fcb4/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f726f6d654f7a2f726f636b2d636170746368612f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/r/romeOz/rock-captcha?branch=master)[![License](https://camo.githubusercontent.com/14e2e7466e5517b8576b41e9851f54f31263125f79849ff83357bfee303c2d80/68747470733a2f2f706f7365722e707567782e6f72672f726f6d654f7a2f726f636b2d636170746368612f6c6963656e73652e737667)](https://packagist.org/packages/romeOz/rock-captcha)

Features
--------

[](#features)

- Multi providers

- [KCaptcha](http://www.captcha.ru/en/kcaptcha/)
- [GregwarCaptcha](https://github.com/Gregwar/Captcha)
- [SecurimageCaptcha](https://github.com/dapphp/securimage)

- Write code to session
- Standalone module/component for [Rock Framework](https://github.com/romeOz/rock)

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

[](#installation)

From the Command Line:

```
composer require romeoz/rock-captcha

```

In your composer.json:

```
{
    "require": {
        "romeoz/rock-captcha": "*"
    }
}
```

Quick Start
-----------

[](#quick-start)

```
use rock\captcha\KCaptcha;

$captcha = new KCaptcha();

echo '';

$captcha->getCode(); // output:
```

Write to session:

Required install [Rock Session](https://github.com/romeOz/rock-session).

`composer require romeoz/rock-session`

Example:

```
$config = [
    'session' => new \rock\session\Session
];
$captcha = new KCaptcha($config);

echo '';

$captcha->getSession(); // output:
```

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

[](#requirements)

- **PHP 5.4+**
- For write code to session required [Rock Session](https://github.com/romeOz/rock-session): `composer require romeoz/rock-session`
- For using GregwarCaptcha required [gregwar/captcha](https://github.com/Gregwar/Captcha): `composer require gregwar/captcha:1.*`
- For using SecurimageCaptcha required [dapphp/securimage](https://github.com/dapphp/securimage): `composer require dapphp/securimage:3.6.*`

> All unbolded dependencies is optional.

License
-------

[](#license)

Captcha library is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Total

3

Last Release

3842d ago

### Community

Maintainers

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

---

Top Contributors

[![romeOz](https://avatars.githubusercontent.com/u/3135712?v=4)](https://github.com/romeOz "romeOz (12 commits)")

---

Tags

spamcaptchaAbuse

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[google/recaptcha

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

3.6k89.1M222](/packages/google-recaptcha)[karser/karser-recaptcha3-bundle

Google ReCAPTCHA v3 for Symfony

1862.4M7](/packages/karser-karser-recaptcha3-bundle)[laminas/laminas-captcha

Generate and validate CAPTCHAs using Figlets, images, ReCaptcha, and more

2318.5M43](/packages/laminas-laminas-captcha)[usarise/turnstile

PHP library for Turnstile, is Cloudflare’s smart CAPTCHA alternative. It can be embedded into any website without sending traffic through Cloudflare and works without showing visitors a CAPTCHA.

2393.5k6](/packages/usarise-turnstile)

PHPackages © 2026

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