Yii2 entity Installation The preferred way to install this extension is through composer. Either run php composer.phar require --prefer-dist devgroup/yii2-entity "*" or add "devgroup/yii2-entity": "*" to the require section of your composer.json file. Usage