ComponentTrait for yii2, that will allow you to extend your Object instance with behaviors and events functionality.
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.
Add 'use \flexibuild\component\ComponentTrait' section in your class. After that you can use behaviors and events funcitonality in objects of this class.
No stable releases.
Comments