PHPackages                             nystudio107/craft-code-field - 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. nystudio107/craft-code-field

ActiveCraft-plugin[Utility &amp; Helpers](/categories/utility)

nystudio107/craft-code-field
============================

Provides a Code Field that has a full-featured code editor with syntax highlighting &amp; autocomplete

5.0.2(3mo ago)432.8k↓22.4%24MITPHPPHP ^8.2CI passing

Since Nov 3Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/nystudio107/craft-code-field)[ Packagist](https://packagist.org/packages/nystudio107/craft-code-field)[ GitHub Sponsors](https://github.com/khalwat)[ RSS](/packages/nystudio107-craft-code-field/feed)WikiDiscussions develop-v5 Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (40)Used By (4)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/1eccc5af8c2311dba7025881ce6702bab3e104f0c932788adc4568d6e9b858a9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e7973747564696f3130372f63726166742d636f64652d6669656c642f6261646765732f7175616c6974792d73636f72652e706e673f623d7635)](https://scrutinizer-ci.com/g/nystudio107/craft-code-field/?branch=v5) [![Code Coverage](https://camo.githubusercontent.com/acca41d6878b2b8404d7fc5daf535e7c3d9ce6257ab866ac333809fb211c5bfc/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e7973747564696f3130372f63726166742d636f64652d6669656c642f6261646765732f636f7665726167652e706e673f623d7635)](https://scrutinizer-ci.com/g/nystudio107/craft-code-field/?branch=v5) [![Build Status](https://camo.githubusercontent.com/8570b8e8d87d5535be8a7e1e9bd8695b75fed4c31979138660bb0bde6193139c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e7973747564696f3130372f63726166742d636f64652d6669656c642f6261646765732f6275696c642e706e673f623d7635)](https://scrutinizer-ci.com/g/nystudio107/craft-code-field/build-status/v5) [![Code Intelligence Status](https://camo.githubusercontent.com/9344af0f115aa5033b9b06d38d48e7a2efca230e752c810ce9e0a608855c0dd7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e7973747564696f3130372f63726166742d636f64652d6669656c642f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d7635)](https://scrutinizer-ci.com/code-intelligence)

Code Field plugin for Craft CMS
===============================

[](#code-field-plugin-for-craft-cms)

Provides a Code Field that has a full-featured code editor with syntax highlighting &amp; autocomplete

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

[](#requirements)

This plugin requires Craft CMS 5.0.0 or later

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

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require nystudio107/craft-code-field

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Code Field.

Documentation
-------------

[](#documentation)

Click here -&gt; [Code Field Documentation](https://nystudio107.com/plugins/code-field/documentation)

Brought to you by [nystudio107](http://nystudio107.com)

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance81

Actively maintained with recent releases

Popularity34

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity71

Established project with proven stability

 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

Every ~33 days

Recently: every ~66 days

Total

37

Last Release

102d ago

Major Versions

3.0.11 → 4.0.112023-10-10

3.0.12 → 4.0.122024-01-16

4.0.12 → 5.0.0-beta.12024-01-16

3.0.13 → 4.0.132025-05-17

v4.x-dev → 5.0.12025-05-17

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7570798?v=4)[Andrew Welch](/maintainers/khalwat)[@khalwat](https://github.com/khalwat)

---

Top Contributors

[![khalwat](https://avatars.githubusercontent.com/u/7570798?v=4)](https://github.com/khalwat "khalwat (201 commits)")

---

Tags

cmsCraftcraftcmscraft-plugincode field

### Embed Badge

![Health badge](/badges/nystudio107-craft-code-field/health.svg)

```
[![Health](https://phpackages.com/badges/nystudio107-craft-code-field/health.svg)](https://phpackages.com/packages/nystudio107-craft-code-field)
```

###  Alternatives

[doublesecretagency/craft-cpcss

Add custom CSS to your Control Panel.

117454.0k9](/packages/doublesecretagency-craft-cpcss)[verbb/navigation

Create navigation menus for your site.

90683.7k17](/packages/verbb-navigation)[verbb/formie

The most user-friendly forms plugin for Craft.

101372.9k40](/packages/verbb-formie)[verbb/comments

Add comments to your site.

13753.1k](/packages/verbb-comments)[doublesecretagency/craft-cpjs

Add custom JavaScript to your Control Panel.

43163.7k](/packages/doublesecretagency-craft-cpjs)[verbb/tablemaker

Create customizable and user-defined table fields.

40168.8k1](/packages/verbb-tablemaker)

PHPackages © 2026

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