flexibuild/component

ComponentTrait for yii2, that will allow you to extend your Object instance with behaviors and events functionality.

Installs: 410

Dependents: 2

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

dev-master 2014-12-12 11:17 UTC

This package is not auto-updated.

Last update: 2024-04-09 01:29:02 UTC


README

ComponentTrait for yii2, that will allow you to extend your Object instance with behaviors and events functionality.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist flexibuild/component "*"

or add

"flexibuild/component": "*"

to the require section of your composer.json file.

Usage

Add 'use \flexibuild\component\ComponentTrait' section in your class. After that you can use behaviors and events funcitonality in objects of this class.