PHPackages                             snowsoft/php-editor - 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. snowsoft/php-editor

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

snowsoft/php-editor
===================

PHP editor extension for laravel-admin based on code-mirror

v1.0.4(3y ago)010MITPHPPHP &gt;=7.0.0

Since Sep 11Pushed 3y agoCompare

[ Source](https://github.com/snowsoft/php-editor)[ Packagist](https://packagist.org/packages/snowsoft/php-editor)[ Docs](https://github.com/snowsoft/php-editor)[ RSS](/packages/snowsoft-php-editor/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (6)Used By (0)

PHP editor extension for laravel-admin based on code-mirror
===========================================================

[](#php-editor-extension-for-laravel-admin-based-on-code-mirror)

[DEMO](http://demo.laravel-admin.org/code-mirror/php) (Login using `admin/admin`)

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

[](#installation)

```
composer require snowsoft/php-editor

php artisan vendor:publish --tag=laravel-admin-code-mirror
```

Configuration
-------------

[](#configuration)

In the `extensions` section of the `config/admin.php` file, add some configuration that belongs to this extension.

```
    'extensions' => [

        'php-editor' => [

            //Set to false if you want to disable this extension
            'enable' => true,

            // Editor configuration
            'config' => [

            ]
        ]
    ]
```

The configuration of the editor can be found in [CodeMirror Documentation](https://codemirror.net/)

Usage
-----

[](#usage)

Use it in the form:

```
$form->php('code');
```

Set height

```
$form->php('code')->height(500);
```

License
-------

[](#license)

Licensed under [The MIT License (MIT)](LICENSE).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 60% 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 ~399 days

Total

5

Last Release

1207d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4568234?v=4)[snowsoft](/maintainers/snowsoft)[@snowsoft](https://github.com/snowsoft)

---

Top Contributors

[![snowsoft](https://avatars.githubusercontent.com/u/4568234?v=4)](https://github.com/snowsoft "snowsoft (6 commits)")[![z-song](https://avatars.githubusercontent.com/u/1479100?v=4)](https://github.com/z-song "z-song (4 commits)")

---

Tags

phpextensioneditorcode mirrorlaravel-admin

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/snowsoft-php-editor/health.svg)

```
[![Health](https://phpackages.com/badges/snowsoft-php-editor/health.svg)](https://phpackages.com/packages/snowsoft-php-editor)
```

###  Alternatives

[laravel-admin-ext/summernote

Summernote extension for laravel-admin

37140.5k](/packages/laravel-admin-ext-summernote)[laravel-admin-ext/ckeditor

Integrate CKEDITOR into laravel-admin

30183.6k1](/packages/laravel-admin-ext-ckeditor)[codingyu/ueditor

UEditor extension for laravel-admin

6471.6k](/packages/codingyu-ueditor)[jxlwqq/simditor

Simditor for Laravel-admin

1629.0k1](/packages/jxlwqq-simditor)

PHPackages © 2026

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