PHPackages                             kevingroeger/codeeditorfield - 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. kevingroeger/codeeditorfield

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

kevingroeger/codeeditorfield
============================

Code editor field for SilverStripe 4 - 6

1.4(9mo ago)19.4k↓47.7%2BSD-3-ClausePHPPHP ^8.1

Since May 23Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/kevingroeger/codeeditorfield)[ Packagist](https://packagist.org/packages/kevingroeger/codeeditorfield)[ RSS](/packages/kevingroeger-codeeditorfield/feed)WikiDiscussions main Synced yesterday

READMEChangelog (3)Dependencies (1)Versions (7)Used By (2)

Code Editor Field for SilverStripe
==================================

[](#code-editor-field-for-silverstripe)

Creates an Ace Code Editor ()

Feel free to contribute, ask questions or report issues!

Requirements
------------

[](#requirements)

- Silverstripe 4 - 6
- PHP 8+

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

[](#installation)

`composer require kevingroeger/codeeditorfield`

Usage
-----

[](#usage)

```
$codeEditor = CodeEditorField::create('Title', 'Enter Source Code Here');

// set mode to html (default is json)
$codeEditor->setMode('ace/mode/html');

// set mode to github (default is monokai)
$codeEditor->setTheme('ace/theme/github');

$fields->addFieldsToTab('Root.Main', [
    $codeEditor
]);
```

Themes &amp; Modes
------------------

[](#themes--modes)

For available modes and themes, see [resources/thirdparty/ace](resources/thirdparty/ace)

Contribute
----------

[](#contribute)

- [Create an Issue](https://github.com/kevingroeger/codeeditorfield/issues)
- [Or Fork and create a PR](https://github.com/kevingroeger/codeeditorfield/fork)

### Credits

[](#credits)

- Thanks to @nathancox for creating this repository
- Thanks to @jinjie for creating this repository

Both have stopped development, but this package is highly inspired by the great work of these two!

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance58

Moderate activity, may be stable

Popularity26

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

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

Every ~171 days

Recently: every ~214 days

Total

6

Last Release

280d ago

PHP version history (2 changes)1.0PHP ^8.0

1.2PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/98e773e8ad2778e40c9595c2d51731404b1565b99f3bec10fdd0d90a685dd571?d=identicon)[kevingroeger](/maintainers/kevingroeger)

---

Top Contributors

[![prij](https://avatars.githubusercontent.com/u/1773755?v=4)](https://github.com/prij "prij (5 commits)")[![kevingroeger](https://avatars.githubusercontent.com/u/54183086?v=4)](https://github.com/kevingroeger "kevingroeger (4 commits)")

---

Tags

codesilverstripeeditorformfield

### Embed Badge

![Health badge](/badges/kevingroeger-codeeditorfield/health.svg)

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

###  Alternatives

[silverstripe/userforms

UserForms enables CMS users to create dynamic forms via a drag and drop interface and without getting involved in any PHP code

1371.1M85](/packages/silverstripe-userforms)[symbiote/silverstripe-advancedworkflow

Adds configurable workflow support to the CMS, with a GUI for creating custom workflow definitions.

46302.4k9](/packages/symbiote-silverstripe-advancedworkflow)[nathancox/codeeditorfield

A field for editing code and JSON in the SilverStripe CMS using Ace Editor (http://ace.c9.io/)

2549.4k5](/packages/nathancox-codeeditorfield)

PHPackages © 2026

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