PHPackages                             gplcart/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. gplcart/codemirror

ActiveGplcart-module

gplcart/codemirror
==================

001PHP

Since Mar 10Pushed 8y agoCompare

[ Source](https://github.com/gplcart/codemirror)[ Packagist](https://packagist.org/packages/gplcart/codemirror)[ RSS](/packages/gplcart-codemirror/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (1)

[![Build Status](https://camo.githubusercontent.com/032aca29d37d789842067d6b539c5acbfacc911a25bafe8d5a725fee5b6c8956/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f67706c636172742f636f64656d6972726f722f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/gplcart/codemirror/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8c1cec90738038b9ec25f3bfd50bec69d3737a758884f7c8523ce9c1e993a5b3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f67706c636172742f636f64656d6972726f722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/gplcart/codemirror/?branch=master)

Code Mirror is a [GPL Cart](https://github.com/gplcart/gplcart) module that provides [Code Mirror](https://github.com/codemirror/codemirror) library for other modules. Don't install if your modules don't require it.

Example of usage in your module - add Code Mirror on every page within admin area

```
/**
 * Implements hook "construct.controller.backend"
 * @param \gplcart\core\controllers\backend\Controller $object
 */
public function hookConstructControllerBackend($object)
{
	if ($this->config->isEnabledModule('codemirror')) {
		/* @var $module \gplcart\modules\codemirror\Codemirror */
		$module = $this->config->getModuleInstance('codemirror');
		$module->addLibrary($object);
	}
}

```

**Installation**

This module requires 3-d party library which should be downloaded separately. You have to use [Composer](https://getcomposer.org) to download all the dependencies.

1. From your web root directory: `composer require gplcart/codemirror`. If the module was downloaded and placed into `system/modules` manually, run `composer update` to make sure that all 3-d party files are presented in the `vendor` directory.
2. Go to `admin/module/list` end enable the module
3. Adjust settings on `admin/module/settings/codemirror`

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![gplcart](https://avatars.githubusercontent.com/u/16158956?v=4)](https://github.com/gplcart "gplcart (22 commits)")

---

Tags

codemirrorecommercegplcartgplcart-moduleshopping-cart

### Embed Badge

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

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

PHPackages © 2026

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