flexibuild / component
ComponentTrait for yii2, that will allow you to extend your Object instance with behaviors and events functionality.
Installs: 413
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-12-31 05:54:24 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.