bigdropinc/yii2-active-interaction

Manage business logic

Installs: 200

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 1

Type:yii2-extension

pkg:composer/bigdropinc/yii2-active-interaction

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());