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

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

php-quickorm/captcha
====================

A library implemented by PHP to generate captcha easily.

v1.0(7y ago)82457MITPHP

Since Mar 16Pushed 7y ago1 watchersCompare

[ Source](https://github.com/php-quickorm/Captcha)[ Packagist](https://packagist.org/packages/php-quickorm/captcha)[ RSS](/packages/php-quickorm-captcha/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

PHP Captcha Library
===================

[](#php-captcha-library)

What is it
----------

[](#what-is-it)

A library implemented by PHP to generate captcha easily.

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

[](#requirements)

- PHP 5 +
- PHP GD
- composer

> Please assure that you have installed php-gd, and install it via `apt install php7.0-gd` or `apt install php5-gd` is recommended.

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

[](#installation)

Here are two ways to install:

- Using composer:

    ```
    composer require php-quickorm/captcha

    ```
- or download the `Captcha.php` and `arial.ttf` to your project and import it by `require "Captcha.php";`

Usage
-----

[](#usage)

The captcha has three levels, and the first is the easiest.

### Simple

[](#simple)

image.php

```
$captcha = new Captcha();
$_SESSION['code'] = $captcha->getCode();
$captcha->render();
```

index.html

```

```

### Advanced Options

[](#advanced-options)

```
// The Captcha has three levels, and the first is the easiest.
$level = 3;
// Case Sensitive
$caseSensitive = false;

$captcha = new Captcha($level, $caseSensitive);

// Get the code
$code = $captcha->getCode();

// Get the php-gd image resource
$im = $captcha->getImageResource();

// Check the code if correct
$captcha->check("AbcD");

// Send HTTP response as a image
$captcha->render();
```

Here is a demo:

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

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

Unknown

Total

1

Last Release

2664d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cdd090dbe3975932cec15b36e0b0d2ccc4760838969fde448ea440d0e75c31e4?d=identicon)[Rytia](/maintainers/Rytia)

---

Top Contributors

[![zzfly256](https://avatars.githubusercontent.com/u/7760268?v=4)](https://github.com/zzfly256 "zzfly256 (5 commits)")

---

Tags

captchaphp-calendar-generatorphp-captchaphp-captcha-library

### Embed Badge

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

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

###  Alternatives

[bramus/mixed-content-scan

Scan your HTTPS-enabled website for Mixed Content

51610.6k](/packages/bramus-mixed-content-scan)[pedroborges/meta-tags

HTML meta tags generator for PHP.

4628.8k1](/packages/pedroborges-meta-tags)[carlcs/craft-deleteentryversions

Delete Entry Versions plugin for Craft CMS

2613.6k](/packages/carlcs-craft-deleteentryversions)

PHPackages © 2026

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