PHPackages                             moonshine/ace - 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. moonshine/ace

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

moonshine/ace
=============

Ace editor for MoonShine

1.0.5(2mo ago)44.2k↓30.3%1MITJavaScriptPHP ^8.2|^8.3CI passing

Since Oct 10Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/moonshine-software/ace)[ Packagist](https://packagist.org/packages/moonshine/ace)[ Docs](https://moonshine-laravel.com)[ RSS](/packages/moonshine-ace/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (4)Versions (8)Used By (0)

Code field for [MoonShine Laravel admin panel](https://moonshine-laravel.com)
=============================================================================

[](#code-field-for-moonshine-laravel-admin-panel)

Extends [Textarea](https://moonshine-laravel.com/docs/resource/fields/fields-textarea) and has the same features

   ![windows](./art/code.png)Note

The package is based on the [Ace](https://ace.c9.io/) library.

---

Compatibility
-------------

[](#compatibility)

MoonShineMoonshine AceCurrently supported&gt;= v3.0&gt;= v1.0.0yesInstallation
------------

[](#installation)

```
composer require moonshine/ace
```

Usage
-----

[](#usage)

```
use MoonShine\Ace\Fields\Code;

Code::make('Code')
```

Default config
--------------

[](#default-config)

To change the default settings, you need to publish the configuration file:

```
php artisan vendor:publish --tag="moonshine-ace-config"
```

You can also add additional options to the configuration file that will apply to all `Code` fields

```
'options' => [
    'language' => 'javascript',
    'options' => [
        'useSoftTabs' => true,
        'navigateWithinSoftTabs' => true,
    ],
    'themes' => [
        'light' => 'chrome',
        'dark' => 'cobalt'
    ],
],
```

Note

For more information, visit the [Ace](https://ace.c9.io/) library.

Language
--------

[](#language)

To change the language, use the `language()` method.

```
language(string $language)
```

```
Code::make('Code')
    ->language('php');
```

Themes
------

[](#themes)

To change the themes, use the `themes()` method.

```
themes(string $light = null, string $dark = null)
```

```
Code::make('Code')
    ->themes('chrome', 'cobalt');
```

Options
-------

[](#options)

The `addOption()` method allows you to add additional options for a field

```
addOption(string $name, string|int|float|bool $value)
```

```
Code::make('Code')
    ->addOption('showGutter', false)
```

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance83

Actively maintained with recent releases

Popularity28

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 63.2% 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 ~99 days

Recently: every ~112 days

Total

6

Last Release

84d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1861327?v=4)[Danil Shutsky](/maintainers/lee-to)[@lee-to](https://github.com/lee-to)

---

Top Contributors

[![DissNik](https://avatars.githubusercontent.com/u/12373059?v=4)](https://github.com/DissNik "DissNik (12 commits)")[![lee-to](https://avatars.githubusercontent.com/u/1861327?v=4)](https://github.com/lee-to "lee-to (4 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")

---

Tags

codeacemoonshine

###  Code Quality

TestsPHPUnit

Static AnalysisRector

### Embed Badge

![Health badge](/badges/moonshine-ace/health.svg)

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

###  Alternatives

[endroid/qr-code

Endroid QR Code

4.8k67.6M348](/packages/endroid-qr-code)[laminas/laminas-code

Extensions to the PHP Reflection API, static code scanning, and code generation

1.9k185.4M172](/packages/laminas-laminas-code)[nette/php-generator

🐘 Nette PHP Generator: generates neat PHP code for you. Supports new PHP 8.5 features.

2.3k64.2M576](/packages/nette-php-generator)[jetbrains/phpstorm-stubs

PHP runtime &amp; extensions header files for PhpStorm

1.4k27.7M68](/packages/jetbrains-phpstorm-stubs)[scrivo/highlight.php

Server side syntax highlighter that supports 185 languages. It's a PHP port of highlight.js

71140.3M82](/packages/scrivo-highlightphp)[riimu/kit-phpencoder

Highly customizable alternative to var\_export for PHP code generation

717.8M32](/packages/riimu-kit-phpencoder)

PHPackages © 2026

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