PHPackages                             macgyer/yii2-spamshield - 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. macgyer/yii2-spamshield

ActiveYii2-extension[Validation &amp; Sanitization](/categories/validation)

macgyer/yii2-spamshield
=======================

Mathematical captcha for Yii2

1.1.0(7y ago)05BSD-3-ClausePHPPHP &gt;=7.1.0

Since Jan 2Pushed 7y ago1 watchersCompare

[ Source](https://github.com/MacGyer/yii2-spamshield)[ Packagist](https://packagist.org/packages/macgyer/yii2-spamshield)[ Docs](http://github.com/macgyer/yii2-spamshield)[ RSS](/packages/macgyer-yii2-spamshield/feed)WikiDiscussions master Synced yesterday

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

Arithmetic Captcha for Yii2
===========================

[](#arithmetic-captcha-for-yii2)

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

[](#installation)

The preferred way of installation is through Composer. If you don't have Composer you can get it here:

You must be able to load NPM assets via Composer. This can either be achieved by the FXP composer asset plugin or by using [Asset Packagist](https://asset-packagist.org/).

To install the package add the following to the `require` section of your composer.json:

```
"require": {
    "macgyer/yii2-spamshield": "*"
},

```

Usage
-----

[](#usage)

```
// in your ActiveForm
