PHP Package: laminas/laminas-captcha

Laminas Captcha is a PHP library designed to generate and validate CAPTCHA images for enhanced security in web forms, helping prevent automated abuse and spam submissions.

Current Version: 2.18.0
Last Updated: 2025-01-06
PHP Requirement: >=7.1
Dependencies: laminas/laminas-servicemanager, laminas/laminas-mvc, laminas/laminas-http, laminas/laminas-form, laminas/laminas-view
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Laminas Captcha provides a flexible and customizable solution for implementing CAPTCHA challenges in PHP applications. With support for various image and audio CAPTCHA types, it offers reliable protection against bots and malicious scripts. This library seamlessly integrates with popular PHP frameworks and content management systems, making it an ideal choice for securing online forms and user registrations.

🔗 View on GitHub

Download Latest Version: 2.18.0

Download Download v2.18.0

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php

// Example from PHPlibraries.com
require_once 'libs/laminas/laminas-captcha/2.18.0/autoload.php';

use Laminas\Captcha\Adapter\AbstractWord;
use Laminas\Captcha\Adapter\Dumb;
use Laminas\Captcha\Adapter\Figlet;
use Laminas\Captcha\Adapter\Image;
use Laminas\Captcha\Adapter\ReCaptcha;
use Laminas\Captcha\Adapter\Word;
use Laminas\Captcha\Dumb;
use Laminas\Captcha\Exception\ExtensionNotLoadedException;
use Laminas\Captcha\Exception\InvalidArgumentException;
use Laminas\Captcha\Exception\NoFontProvidedException;
use Laminas\Captcha\Exception\NoImageProvidedException;
use Laminas\Captcha\Exception\NoRecaptchaSecretKeyException;
use Laminas\Captcha\Exception\NoRecaptchaSiteKeyException;
use Laminas\Captcha\Exception\RuntimeException;
use Laminas\Captcha\Exception\MissingDumbImageFunctionException;
use Laminas\Captcha\Exception\MissingExtensionException;
use Laminas\Captcha\Exception\MissingFontfileException;
use Laminas\Captcha\Exception\MissingImageDumbException;
use Laminas\Captcha\Exception\MissingReCaptchaPrivateKeyException;
use Laminas\Captcha\Exception\MissingReCaptchaPublicKeyException;
use Laminas\Captcha\Exception\MissingWordException;
use Laminas\Captcha\Exception\NoFontProvidedException;
use Laminas\Captcha\Exception\NoImageProvidedException;
use Laminas\Captcha\Factory;
use Laminas\Captcha\ReCaptcha;
use Laminas\Captcha\ReCaptchaV3;
use Laminas\Captcha\Utils;
use Laminas\Captcha\Word;
use Laminas\Captcha\Word\Dumb;
use Laminas\Captcha\Word\Figlet;
use Laminas\Captcha\Word\Image;
use Laminas\Captcha\Word\ReCaptcha;


$obj = new Laminas\Captcha\Adapter\AbstractWord();
echo "✅ Example created successfully.";

?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.