cocoa / captcha
PHP Captcha Package
v1.0
2017-05-19 14:14 UTC
Requires
- php: >=5.4
- ext-gd: *
- intervention/image: ~2.2
This package is not auto-updated.
Last update: 2025-05-25 07:07:24 UTC
README
Based on mewebstudio/captcha.
Preview
Requirements
- PHP >=5.4
- Intervention Image
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();