PHPackages                             mickeywaugh/captcha - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. mickeywaugh/captcha

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

mickeywaugh/captcha
===================

Base On Gregwar/Captcha , compatible with php 8.0+, add setImageType(), and setBackgroundColor() support alpha channel;

v1.0.6(2mo ago)018MITPHPPHP &gt;=8.0

Since Jun 10Pushed 2mo agoCompare

[ Source](https://github.com/Mickeywaugh/PHP-Captcha)[ Packagist](https://packagist.org/packages/mickeywaugh/captcha)[ Docs](https://gitee.com/mickeywaugh/captcha)[ RSS](/packages/mickeywaugh-captcha/feed)WikiDiscussions master Synced 1mo ago

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

Base On Gregwar/Captcha , compatible with php 8.0+, add setImageType(), and setBackgroundColor() support alpha channel;
=======================================================================================================================

[](#base-on--gregwarcaptcha--compatible-with-php-80-add-setimagetype-and-setbackgroundcolor-support-alpha-channel)

Installation
============

[](#installation)

With composer : composer require Mickeywaugh/Captcha

```
{
    ...
    "require": {
        "mickeywaugh/Captcha": "1.*"
    }
}
```

Usage
=====

[](#usage)

You can create a captcha with the `CaptchaBuilder` :

```
