PHPackages                             laravel-admin-ext/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. laravel-admin-ext/php-editor

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

laravel-admin-ext/php-editor
============================

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

v1.0.0(7y ago)814.7k6[2 issues](https://github.com/laravel-admin-extensions/php-editor/issues)MITPHPPHP &gt;=7.0.0CI failing

Since Sep 11Pushed 7y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (2)Versions (2)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 laravel-admin-ext/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);
```

Donate
------

[](#donate)

> Help keeping the project development going, by donating a little. Thanks in advance.

[![PayPal Me](https://camo.githubusercontent.com/604e3db9c8751116b3f765aad0353ec7ded655bbe8aaacbc38d8c4a6b784b3ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.me/zousong)

[![-1](https://cloud.githubusercontent.com/assets/1479100/23287423/45c68202-fa78-11e6-8125-3e365101a313.jpg)](https://cloud.githubusercontent.com/assets/1479100/23287423/45c68202-fa78-11e6-8125-3e365101a313.jpg)

License
-------

[](#license)

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

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2806d ago

### Community

Maintainers

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

---

Top Contributors

[![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/laravel-admin-ext-php-editor/health.svg)

```
[![Health](https://phpackages.com/badges/laravel-admin-ext-php-editor/health.svg)](https://phpackages.com/packages/laravel-admin-ext-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)
