The CodeMirror widget for yii2 framework Installation Composer The preferred way to install this extension is through Composer. Either run php composer.phar require f4soft/yii2-codemirror "dev-master" or add "f4soft/yii2-codemirror": "dev-master" to the require section of your composer.json