Yii2 Alert Toolkit Installation The preferred way to install this extension is through composer. Either run composer require --prefer-dist voskobovich/yii2-alert "~1.0" or add "voskobovich/yii2-alert": "~1.0" to the require section of your composer.json file.