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

ActiveLibrary

kareem3d/captcha
================

Easy way to create and validate captchas.

020PHP

Since Jul 19Pushed 12y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Captcha
=======

[](#captcha)

An easy class to create and validate captcha images

Usage Example
-------------

[](#usage-example)

**Create a new file which can be accessed through url and add these few lines**

e.g. request\_captcha.php =&gt; [http://www.example.com/php\_scripts/request\_captcha.php](http://www.example.com/php_scripts/request_captcha.php)

```
use Captcha\Captcha;

spl_autoload_register();

session_start();

Captcha::init('{path to any font you want on your server}');

$captcha = new Captcha(130, 60, 5);

$captcha->generateImage();

$captcha->saveSession();
```

**Now to generate image in the view**

```

```

**Last step: validating user input with the last generated captcha**

```
session_start();

if(Captcha::validate( $userInput ))
{
	// User input validated successfully.
}
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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/fe2d6d7a1642e9e340a0fbbeded3f4e2cf6ad2c3d77dd89ac7a410e06539a906?d=identicon)[kareem3d](/maintainers/kareem3d)

### Embed Badge

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

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

PHPackages © 2026

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