PHPackages                             yii2cmf/yii2-codemirror-asset - 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. yii2cmf/yii2-codemirror-asset

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

yii2cmf/yii2-codemirror-asset
=============================

CodeMirror is a versatile text editor implemented in JavaScript for the browser. It is specialized for editing code, and comes with a number of language modes and addons that implement more advanced editing functionality.

v1.0(6y ago)09MITJavaScript

Since Feb 6Pushed 6y ago1 watchersCompare

[ Source](https://github.com/yii2cmf/yii2-codemirror-asset)[ Packagist](https://packagist.org/packages/yii2cmf/yii2-codemirror-asset)[ RSS](/packages/yii2cmf-yii2-codemirror-asset/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (2)Used By (0)

CodeMirror Asset Bundle
=======================

[](#codemirror-asset-bundle)

CodeMirror is a versatile text editor implemented in JavaScript for the browser. It is specialized for editing code, and comes with a number of language modes and addons that implement more advanced editing functionality.

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

[](#installation)

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

Either run

```
composer require yii2cmf/yii2-codemirror-asset "1.0"

```

```
"yii2cmf/yii2-codemirror-asset": "1.0"

```

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

Usage
-----

[](#usage)

Register asset bundle in view:

```
\yii2cmf\codemirror\CodeMirrorAsset::register($this);
```

Set a different theme and mode if necessary:

```
$this->params['codemirror_theme'] = 'darcula';
$this->params['codemirror_mode'] = 'clike';
\yii2cmf\codemirror\CodeMirrorAsset::register($this);
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

2287d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a46fcb2005984f02e622b981f041afb6568821fe8fc9a714736f601f0aa640ea?d=identicon)[yii2cmf](/maintainers/yii2cmf)

---

Top Contributors

[![shandyrov](https://avatars.githubusercontent.com/u/7609703?v=4)](https://github.com/shandyrov "shandyrov (8 commits)")

---

Tags

yii2extensioncodemirrorhighlighter

### Embed Badge

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

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

###  Alternatives

[conquer/codemirror

Yii2 codemirror widget

36281.5k3](/packages/conquer-codemirror)[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)
