yagas/yii2-actionfilter-rsa RSA Verify Filter

RSA ActionFilter

  1. Installation
  2. Usage

RSA Verify Filter

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist yagas/yii2-actionfilter-rsa "*"

or add

"yagas/yii2-actionfilter-rsa": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

SiteController extends Controller {
    public function behaviors()
    {
      return [
        'rsa_filter' => [
            'class' => ActionFilterRsa::class,
            'publicKey' => '@app/runtime/resource/publicKey.pem',
            'funHandle' => new MyHandle()
        ]
      ];
    }
}
1 0
1 follower
3 downloads
Yii Version: 2.0
License: MIT
Category: Others
Developed by: yagas
Created on: Sep 26, 2021
Last updated: 3 years ago
Packagist Profile
Github Repository

Related Extensions