PHPackages                             codelords/next-capture - 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. codelords/next-capture

ActiveLibrary[Security](/categories/security)

codelords/next-capture
======================

An Innovative CAPTCHA library in PHP

v0.0.1(2y ago)15MITPHP &gt;=7.4

Since Aug 15Pushed 2y agoCompare

[ Source](https://github.com/code-lords/next-captcha)[ Packagist](https://packagist.org/packages/codelords/next-capture)[ RSS](/packages/codelords-next-capture/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

next-captcha
============

[](#next-captcha)

[![License](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](https://opensource.org/licenses/MIT)

A comprehensive and innovative CAPTCHA library in PHP that supports multiple CAPTCHA types.

Features
--------

[](#features)

- Generate image-based, audio-based, and text-based CAPTCHAs.
- Distinct font variations for CAPTCHA challenges.
- Flexible validation and integration options.
- Examples demonstrating CAPTCHA usage in different scenarios.

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)
    - [Image CAPTCHA](#image-captcha)
    - [Audio CAPTCHA](#audio-captcha)
    - [Text CAPTCHA](#text-captcha)
- [Examples](#examples)
- [Contributing](#contributing)
- [License](#license)

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

[](#installation)

Install the CAPTCHA library using Composer:

```
composer require code-lords/next-captcha
```

Usage
-----

[](#usage)

### Image CAPTCHA

[](#image-captcha)

To generate and display an image-based CAPTCHA:

```
// Include Composer autoloader
require_once 'vendor/autoload.php';

use Codelords\NextCapture\CaptchaGenerator\ImageCaptchaGenerator;

$captchaGenerator = new ImageCaptchaGenerator();
$captchaChallenge = $captchaGenerator->generate();
$captchaImagePath = $captchaGenerator->saveImage('/path/to/save');

// Display $captchaImagePath in your HTML form
```

### Audio CAPTCHA

[](#audio-captcha)

To generate an audio-based CAPTCHA:

```
// Include Composer autoloader
require_once 'vendor/autoload.php';

use Codelords\NextCapture\CaptchaGenerator\AudioCaptchaGenerator;

$captchaGenerator = new AudioCaptchaGenerator();
$captchaChallenge = $captchaGenerator->generate();
// Output $captchaChallenge as an audio element in your HTML
```

### Text CAPTCHA

[](#text-captcha)

To generate a text-based CAPTCHA:

```
// Include Composer autoloader
require_once 'vendor/autoload.php';

use Codelords\NextCapture\CaptchaGenerator\TextCaptchaGenerator;

$captchaGenerator = new TextCaptchaGenerator();
$captchaChallenge = $captchaGenerator->generate();
// Display $captchaChallenge in your HTML form
```

Examples
--------

[](#examples)

For more detailed usage examples, see the examples directory.

Contributing
------------

[](#contributing)

Contributions are welcome! Please read CONTRIBUTING.md for details on how to contribute to this project.

License
-------

[](#license)

This project is licensed under the MIT License - see the LICENSE file for details.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

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

Total

2

Last Release

1006d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

captcha-audiocaptcha-generatorcaptcha-imagecaptcha-text

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/codelords-next-capture/health.svg)

```
[![Health](https://phpackages.com/badges/codelords-next-capture/health.svg)](https://phpackages.com/packages/codelords-next-capture)
```

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

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