bigdropinc/yii2-active-interaction

Manage business logic

dev-master 2019-10-18 14:44 UTC

README

Extension to encapsulate business logic

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist bigdropinc/yii2-active-interaction "*"

or add

"bigdropinc/yii2-active-interaction": "*"

to the require section of your composer.json file.

Usage

Usage

$post = (new CreatePost)([
    'user' => \Yii::$app->user->identity
])->run(\Yii::$app->request->post());