codelords/next-capture 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

codelords/next-capture

最新稳定版本:v0.0.1

Composer 安装命令:

composer require codelords/next-capture

包简介

An Innovative CAPTCHA library in PHP

README 文档

README

License

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

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

Installation

Install the CAPTCHA library using Composer:

composer require code-lords/next-captcha

Usage

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

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

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

For more detailed usage examples, see the examples directory.

Contributing

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

License

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

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-08-15