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.
php composer.phar require --prefer-dist flexibuild/component "*"
to the require section of your
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.