PHPackages                             a7e6j2/yii2-rest-api-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. a7e6j2/yii2-rest-api-captcha

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

a7e6j2/yii2-rest-api-captcha
============================

The captcha image generator for restful api

2.1(7y ago)0109GPL-2.0+PHPPHP &gt;=7.1

Since Sep 5Pushed 7y agoCompare

[ Source](https://github.com/a7e6j2/yii2-rest-api-captcha)[ Packagist](https://packagist.org/packages/a7e6j2/yii2-rest-api-captcha)[ RSS](/packages/a7e6j2-yii2-rest-api-captcha/feed)WikiDiscussions master Synced today

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

yii2-rest-api-captcha
=====================

[](#yii2-rest-api-captcha)

Simple captcha image generator for restful api 22

Installation
------------

[](#installation)

Recommended installation via [composer](http://getcomposer.org/download/):

```
composer require a7e6j2/yii2-rest-api-captcha

```

Usage
-----

[](#usage)

Generate captcha code (image/png;base64):

```
(new CaptchaHelper())->generateImage();
```

Use in HTML:

```
