PHPackages                             kochiro/yii2-codemirror - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. kochiro/yii2-codemirror

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

kochiro/yii2-codemirror
=======================

CodeMirror extension for Yii2

v1.1.1(11y ago)01421LGPL-3.0+PHP

Since Mar 11Pushed 10y ago2 watchersCompare

[ Source](https://github.com/jay-leno/yii2-codemirror)[ Packagist](https://packagist.org/packages/kochiro/yii2-codemirror)[ RSS](/packages/kochiro-yii2-codemirror/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

CodeMirror
==========

[](#codemirror)

CodeMirror extension for Yii2

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

php composer.phar require --prefer-dist kochiro/yii2-codemirror "\*"

or add

"kochiro/yii2-codemirror": "\*"

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

field($file, 'description')-&gt;widget(CodeMirror::className(), \[ 'id' =&gt; $file-&gt;id, 'name' =&gt; '\[description\]\[\]'.$id, 'value' =&gt; $file-&gt;description, 'mode' =&gt; $mode, 'htmlOptions' =&gt; \[ "id"=&gt;'description\_'.$file-&gt;id, "theme"=&gt;'solarized dark' // set the theme based on the options in assets/theme, you must also include the corresponding css file in CodeMirrorAsset.php \] \]); ?&gt;

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 77.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4079d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d39e5a487e99f61e214108bd8a941d6bc38e58cb942f9ca99ed01e6b8a6e9e9?d=identicon)[kochiro](/maintainers/kochiro)

---

Top Contributors

[![jay-leno](https://avatars.githubusercontent.com/u/9682405?v=4)](https://github.com/jay-leno "jay-leno (28 commits)")[![leandrogehlen](https://avatars.githubusercontent.com/u/1750751?v=4)](https://github.com/leandrogehlen "leandrogehlen (5 commits)")[![FallenKochiro](https://avatars.githubusercontent.com/u/12544468?v=4)](https://github.com/FallenKochiro "FallenKochiro (3 commits)")

---

Tags

yii2extension

### Embed Badge

![Health badge](/badges/kochiro-yii2-codemirror/health.svg)

```
[![Health](https://phpackages.com/badges/kochiro-yii2-codemirror/health.svg)](https://phpackages.com/packages/kochiro-yii2-codemirror)
```

###  Alternatives

[vyants/yii2-daemon

Extension provides functionality for simple daemons creation and control

7859.0k](/packages/vyants-yii2-daemon)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
