cocoa/captcha

PHP Captcha Package

v1.0 2017-05-19 14:14 UTC

This package is not auto-updated.

Last update: 2024-04-28 01:29:22 UTC


README

Based on mewebstudio/captcha.

Preview

Preview

Requirements

Composer Installation

composer require cocoa/captcha

Usage

use Cocoa\Captcha\CaptchaBuilder;

$builder = new CaptchaBuilder;

$captcha = $builder->build();

$builder->output();
use Cocoa\Captcha\CaptchaBuilder;

$builder = new CaptchaBuilder;

$length = 5;

$captcha = $builder->build($length);

$builder->setWidth(120)->setHeight(36)->setContrast(0)->setInvert(false)->setSharpen(0)->setBgColor('#ffffff')->setBgImage(true)->setBlur(0)->setQuality(90)->setLines(3)->setAngle(10)->output();